Class PivotItemCollection

Class PivotItemCollection

Namespace: Aspose.Cells.Pivot
Assembly: Aspose.Cells.dll (25.2.0)

Represents all the Aspose.Cells.Pivot.PivotItem objects in the PivotField.

public class PivotItemCollection : IEnumerable

Inheritance

objectPivotItemCollection

Implements

IEnumerable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Count

Gets the count of the pivot items.

public int Count { get; }

Property Value

int

this[int]

Gets the PivotItem Object at the specific index.

public PivotItem this[int index] { get; }

Property Value

PivotItem

this[string]

Gets the Aspose.Cells.Pivot.PivotItem by the specific name.

public PivotItem this[string itemValue] { get; }

Property Value

PivotItem

Methods

GetEnumerator()

Gets an enumerator over the elements in this collection in proper sequence.

public IEnumerator GetEnumerator()

Returns

IEnumerator

enumerator

SwapItem(int, int)

Directly swap two items.

public void SwapItem(int index1, int index2)

Parameters

index1 int

index2 int