Class ExcelSlicerPivotTableCollection
A collection of pivot tables attached to a slicer
Inherited Members
Namespace: OfficeOpenXml.Drawing.Slicer
Assembly: EPPlus.dll
Syntax
public class ExcelSlicerPivotTableCollection : IEnumerable<ExcelPivotTable>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
The indexer for the collection
Declaration
public ExcelPivotTable this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index |
Property Value
| Type | Description |
|---|---|
| ExcelPivotTable | The pivot table at the specified index |
Methods
Add(ExcelPivotTable)
Adds a new pivot table to the collection. All pivot table in this collection must share the same cache.
Declaration
public void Add(ExcelPivotTable pivotTable)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelPivotTable | pivotTable | The pivot table to add |
GetEnumerator()
Get an Enumerator for the collection.
Declaration
public IEnumerator<ExcelPivotTable> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelPivotTable> | The Enumerator |