Back to Devexpress

PivotField.Items Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotfield.md

latest4.9 KB
Original Source

PivotField.Items Property

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

Declaration

csharp
PivotItemCollection Items { get; }
vb
ReadOnly Property Items As PivotItemCollection

Property Value

TypeDescription
PivotItemCollection

A PivotItemCollection object specifying the PivotField’s collection of items.

|

Remarks

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.

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/CodeExamples/PivotTableFilterActions.cs#L33

csharp
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/CodeExamples/PivotTableFilterActions.cs#L33

csharp
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;

spreadsheet-document-api-pivot-table-examples/CS/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableFilterActions.cs#L41

csharp
// Access items of the "Product" field.
PivotItemCollection pivotFieldItems = pivotTable.Fields[1].Items;

wpf-spreadsheet-pivot-table-api-examples/VB/SpreadsheetWPFPivotTableExamples/CodeExamples/PivotTableFilterActions.vb#L33

vb
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/CodeExamples/PivotTableFilterActions.vb#L33

vb
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items

spreadsheet-document-api-pivot-table-examples/VB/SpreadsheetDocServerPivotAPI/CodeExamples/PivotTableFilterActions.vb#L37

vb
' Access items of the "Product" field.
Dim pivotFieldItems As PivotItemCollection = pivotTable.Fields(1).Items

See Also

Pivot Table Structure

How to: Create a Pivot Table

PivotField Interface

PivotField Members

DevExpress.Spreadsheet Namespace