Class PivotItemCollection
Represents a collection of pivot items within a pivot field.
Inherited Members
Namespace: DRIT.Spreadsheet.Pivot
Assembly: DRIT.Spreadsheet.dll
Syntax
public class PivotItemCollection : IEnumerable<PivotItem>, IEnumerable
Properties
Count
Gets the number of pivot items in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the pivot item at the specified index.
Declaration
public PivotItem this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index. |
Property Value
| Type | Description |
|---|---|
| PivotItem | The pivot item at the specified index. |
this[string]
Gets the pivot item with the specified name.
Declaration
public PivotItem this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the pivot item. |
Property Value
| Type | Description |
|---|---|
| PivotItem | The pivot item with the specified name. |
Methods
GetEnumerator()
Returns an enumerator for iterating over the pivot items.
Declaration
public IEnumerator<PivotItem> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<PivotItem> | An enumerator for the pivot items. |