Namespace EasyXLS.PivotTables
Class ExcelValueField
System.Object
EasyXLS.PivotTables.ExcelValueField
public class ExcelValueField
extends System.Object
This class stores pivot table value field information like name, basic field, subtotal and number format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClone()Creates and returns a copy of this object.System.StringReturns the name of the field.System.StringReturns the name of the pivot table value field.System.StringReturns the number format of the value field.intReturns the subtotal applied on the value field.voidsetCustomName(System.String customName) Sets the name of the pivot table value field.voidsetFormat(System.String format) Sets the number format of the value field.voidsetSubtotal(int subtotal) Sets the subtotal applied on the value field.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelValueField
public ExcelValueField()Defines an instance of the pivot table value field.
-
-
Method Details
-
getCustomName
public System.String getCustomName()Returns the name of the pivot table value field.- Returns:
- the name of the pivot table value field
- See Also:
-
setCustomName
public void setCustomName(System.String customName) Sets the name of the pivot table value field.- Parameters:
customName- the name of the pivot table value field- See Also:
-
getBasicField
public System.String getBasicField()Returns the name of the field.- Returns:
- the name of the field
- See Also:
-
getSubtotal
public int getSubtotal()Returns the subtotal applied on the value field.- Returns:
- the subtotal applied on the value field. Possible values are available in
PivotTableclass. - See Also:
-
setSubtotal
public void setSubtotal(int subtotal) Sets the subtotal applied on the value field.- Parameters:
subtotal- - the subtotal to be applied. Possible values are available inPivotTableclass.- See Also:
-
getFormat
public System.String getFormat()Returns the number format of the value field. Possible values are available inFormatclass.- Returns:
- the number format of the value field
- See Also:
-
setFormat
public void setFormat(System.String format) Sets the number format of the value field.- Parameters:
format- the number format of the value field. Possible values are available inFormatclass.- See Also:
-
Clone
Creates and returns a copy of this object.- Returns:
- a clone of this instance.
-