[]
        
(Showing Draft Content)

ICalculatedFields

Interface ICalculatedFields

All Superinterfaces:
Iterable<IPivotField>

public interface ICalculatedFields extends Iterable<IPivotField>
A collection of PivotField objects that represents all the calculated fields in the specified PivotTable report.
See Also:
  • Method Details

    • getCount

      int getCount()
      Returns the number of calculated fields.
    • get

      IPivotField get(int index)
      Get calculated field by index.
      Parameters:
      index - The index of the calculated field.
      Returns:
      calculated field
      See Also:
    • get

      IPivotField get(String fieldName)
      Get calculated field by name.
      Parameters:
      fieldName - The name of the calculated field.
      Returns:
      calculated field
      See Also:
    • add

      IPivotField add(String Name, String Formula)
      Creates a new calculated field. Returns a PivotField object.
      Parameters:
      Name - The name of the field.
      Formula - The formula for the field.
      Returns:
      the calculated field
      See Also:
    • remove

      void remove(String fieldName)
      Remove the calculated fields by name.
      Parameters:
      fieldName - name of calculated field