Namespace EasyXLS.PivotTables
Class ExcelCalculatedField
System.Object
EasyXLS.PivotTables.ExcelField
EasyXLS.PivotTables.ExcelCalculatedField
This class stores the formula for a calculated field of pivot table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClone()Creates and returns a copy of this object.System.StringReturns the formula of the pivot table field.voidsetFormula(System.String formula) Sets the formula of the pivot table field.Methods inherited from class EasyXLS.PivotTables.ExcelField
addSubtotal, getArea, getBaseField, getCustomName, getGroupBy, getGroupEndAt, getGroupInterval, getGroupStartAt, getNumberFormat, getOriginalName, getSortOrder, getSubtotalAt, groupBy, HasNewItemsInFilter, IsGroupAutoEnd, IsGroupAutoStart, IsInsertBlankLine, IsInsertPageBreak, removeSubtotal, setCustomName, setInsertBlankLine, setInsertPageBreak, setNewItemsInFilter, setNumberFormat, setOriginalName, setShowItemLabelsInOutlineForm, setShowItemLabelsInTabularForm, setShowItemsWithNoData, setSortOrder, ShowCompactForm, ShowItemLabelsInOutlineForm, ShowItemLabelsInTabularForm, ShowItemsWithNoData, ShowSubtotalsOnTop, SubtotalCountMethods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public System.String getFormula()Returns the formula of the pivot table field.- Returns:
- the formula of the pivot table field
- See Also:
-
Clone
Description copied from class:ExcelFieldCreates and returns a copy of this object.- Overrides:
Clonein classExcelField- Returns:
- a clone of this instance.
-