Aspose::Cells::Pivot::PivotFieldCollection class

PivotFieldCollection class

Represents a collection of all the PivotField objects in the PivotTable’s specific PivotFields type.

class PivotFieldCollection

Methods

MethodDescription
Add(const PivotField& pivotField)Adds a PivotField Object to the specific type PivotFields.
AddByBaseIndex(int32_t baseFieldIndex)Adds a PivotField Object to the specific type PivotFields.
Clear()clear all fields of PivotFieldCollection
Get(int32_t index)Gets the PivotField Object at the specific index.
Get(const U16String& name)Gets the PivotField Object of the specific name.
Get(const char16_t* name)Gets the PivotField Object of the specific name.
GetCount()Gets the count of the pivotFields.
GetEnumerator()Gets an enumerator over the elements in this collection in proper sequence.
GetType()Gets the PivotFields type.
IsNull() constChecks whether the implementation object is nullptr.
Move(int32_t currPos, int32_t destPos)Moves the PivotField from current position to destination position.
explicit operator bool() constoperator bool()
operator=(const PivotFieldCollection& src)operator=
PivotFieldCollection(PivotFieldCollection_Impl* impl)Constructs from an implementation object.
PivotFieldCollection(const PivotFieldCollection& src)Copy constructor.
~PivotFieldCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also