officefileapi-devexpress-dot-spreadsheet-dot-pivotfield.md
Provides access to the collection of items in the specified PivotTable field.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
PivotItemCollection Items { get; }
ReadOnly Property Items As PivotItemCollection
| Type | Description |
|---|---|
| PivotItemCollection |
A PivotItemCollection object specifying the PivotField’s collection of items.
|
Use the Items property to get access to the collection of items in a particular PivotTable field. Items represent the unique entries from the field in the source data. An individual item within the collection is represented by the PivotItem object, and can be accessed using indexer notation.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Items 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.
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items
See Also