Class ExcelPivotAreaDataFieldReference
A collection of data fields used in a pivot area selection
Inherited Members
Namespace: OfficeOpenXml.Table.PivotTable
Assembly: EPPlus.dll
Syntax
public class ExcelPivotAreaDataFieldReference : ExcelPivotAreaReferenceBase, IEnumerable<ExcelPivotTableDataField>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
The indexer
Declaration
public ExcelPivotTableDataField this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the collection |
Property Value
| Type | Description |
|---|---|
| ExcelPivotTableDataField |
Methods
Add(ExcelPivotTableDataField)
Adds a data field from the pivot table to the pivot area
Declaration
public void Add(ExcelPivotTableDataField field)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelPivotTableDataField | field |
Add(int)
Adds the data field at the specific index
Declaration
public void Add(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
GetEnumerator()
Gets the enumerator
Declaration
public IEnumerator<ExcelPivotTableDataField> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelPivotTableDataField> |