officefileapi-devexpress-dot-spreadsheet-dot-pivotitem-feeef2f9.md
Gets or sets the label text for the pivot item.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
string Caption { get; set; }
Property Caption As String
| Type | Description |
|---|---|
| String |
A String value that specifies the custom item caption.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Caption property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems
' Set the grouped item caption to "West".
groupedField.Items(0).Caption = "West"
' #End Region ' #GroupFieldItems
' Set the grouped item caption to "West".
groupedField.Items(0).Caption = "West"
' #End Region ' #GroupFieldItems
' Set the grouped item caption to "West".
groupedField.Items(0).Caption = "West"
#End Region ' #GroupFieldItems
See Also