Back to Devexpress

PivotItem.Caption Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotitem-feeef2f9.md

latest4.3 KB
Original Source

PivotItem.Caption Property

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

Declaration

csharp
string Caption { get; set; }
vb
Property Caption As String

Property Value

TypeDescription
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.

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/CodeExamples/PivotFieldGroupingActions.cs#L28

csharp
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/CodeExamples/PivotFieldGroupingActions.cs#L28

csharp
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems

spreadsheet-document-api-pivot-table-examples/CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotFieldGroupingActions.cs#L34

csharp
// Set the grouped item caption to "West".
groupedField.Items[0].Caption = "West";
#endregion #GroupFieldItems

wpf-spreadsheet-pivot-table-api-examples/VB/SpreadsheetWPFPivotTableExamples/CodeExamples/PivotFieldGroupingActions.vb#L25

vb
' Set the grouped item caption to "West".
            groupedField.Items(0).Caption = "West"
' #End Region ' #GroupFieldItems

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/CodeExamples/PivotFieldGroupingActions.vb#L25

vb
' Set the grouped item caption to "West".
            groupedField.Items(0).Caption = "West"
' #End Region ' #GroupFieldItems

spreadsheet-document-api-pivot-table-examples/VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotFieldGroupingActions.vb#L31

vb
' Set the grouped item caption to "West".
            groupedField.Items(0).Caption = "West"
#End Region ' #GroupFieldItems

See Also

PivotItem Interface

PivotItem Members

DevExpress.Spreadsheet Namespace