com.aspose.cells

Class PivotFieldCollection

  • java.lang.Object
    • com.aspose.cells.PivotFieldCollection
public class PivotFieldCollection 
extends java.lang.Object

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

Property Getters/Setters Summary
intgetCount()
Gets the count of the pivotFields.
intgetType()
Gets the PivotFields type. The value of the property is PivotFieldType integer constant.
PivotFieldget(intindex)
Gets the PivotField Object at the specific index.
PivotFieldget(java.lang.Stringname)
Gets the PivotField Object of the specific name.
 
Method Summary
intadd(PivotField pivotField)
Adds a PivotField Object to the specific type PivotFields.
intaddByBaseIndex(intbaseFieldIndex)
Adds a PivotField Object to the specific type PivotFields.
voidclear()
clear all fields of PivotFieldCollection
 

    • Property Getters/Setters Detail

      • getType

        public int getType()
        
        Gets the PivotFields type. The value of the property is PivotFieldType integer constant.
      • getCount

        public int getCount()
        
        Gets the count of the pivotFields.
      • get

        public PivotField get(int index)
        
        Gets the PivotField Object at the specific index.
      • get

        public PivotField get(java.lang.String name)
        
        Gets the PivotField Object of the specific name.
    • Method Detail

      • addByBaseIndex

        public int addByBaseIndex(int baseFieldIndex)
        Adds a PivotField Object to the specific type PivotFields.
        Parameters:
        baseFieldIndex - field index in the base PivotFields.
        Returns:
        the index of the PivotField Object in this PivotFields.
      • add

        public int add(PivotField pivotField)
        Adds a PivotField Object to the specific type PivotFields.
        Parameters:
        pivotField - a PivotField Object.
        Returns:
        the index of the PivotField Object in this PivotFields.
      • clear

        public void clear()
        clear all fields of PivotFieldCollection