Class ExcelCalculatedField

System.Object
EasyXLS.PivotTables.ExcelField
EasyXLS.PivotTables.ExcelCalculatedField

public class ExcelCalculatedField extends ExcelField
This class stores the formula for a calculated field of pivot table.
  • Constructor Details

    • ExcelCalculatedField

      public ExcelCalculatedField()
      Defines an instance of the pivot table field.
  • Method Details

    • setFormula

      public void setFormula(System.String formula)
      Sets the formula of the pivot table field. The formula must start with "=" symbol.
      Parameters:
      formula - the formula of the pivot table field.
      See Also:
      getFormula()
    • getFormula

      public System.String getFormula()
      Returns the formula of the pivot table field.
      Returns:
      the formula of the pivot table field
      See Also:
      setFormula(System.String)
    • Clone

      public ExcelCalculatedField Clone()
      Description copied from class: ExcelField
      Creates and returns a copy of this object.
      Overrides:
      Clone in class ExcelField
      Returns:
      a clone of this instance.