ListColumn

ListColumn class

Represents a column in a Table.

class ListColumn;

Methods

MethodDescription
getName()Gets and sets the name of the column.
setName(string)Gets and sets the name of the column.
getTotalsCalculation()Gets and sets the type of calculation in the Totals row of the list column.
setTotalsCalculation(TotalsCalculation)Gets and sets the type of calculation in the Totals row of the list column.
getRange()Gets the range of this list column.
getFormula()Gets and sets the formula of the list column.
setFormula(string)Gets and sets the formula of the list column.
getTotalsRowLabel()Gets and sets the display labels of total row.
setTotalsRowLabel(string)Gets and sets the display labels of total row.
getCustomTotalsRowFormula(boolean, boolean)Gets the formula of totals row of this list column.
setCustomTotalsRowFormula(string, boolean, boolean)Gets the formula of totals row of this list column.
getCustomCalculatedFormula(boolean, boolean)Gets the formula of this list column.
setCustomCalculatedFormula(string, boolean, boolean)Sets the formula for this list column.
getDataStyle()Gets the style of the data in this column of the table.
setDataStyle(Style)Sets the style of the data in this column of the table.
isNull()Checks whether the implementation object is null.

getName()

Gets and sets the name of the column.

getName() : string;

Remarks

If sets the name of the column, the according cell’ value will be changed too.

setName(string)

Gets and sets the name of the column.

setName(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

Remarks

If sets the name of the column, the according cell’ value will be changed too.

getTotalsCalculation()

Gets and sets the type of calculation in the Totals row of the list column.

getTotalsCalculation() : TotalsCalculation;

Returns

TotalsCalculation

setTotalsCalculation(TotalsCalculation)

Gets and sets the type of calculation in the Totals row of the list column.

setTotalsCalculation(value: TotalsCalculation) : void;

Parameters:

ParameterTypeDescription
valueTotalsCalculationThe value to set.

getRange()

Gets the range of this list column.

getRange() : Range;

Returns

Range

getFormula()

Gets and sets the formula of the list column.

getFormula() : string;

setFormula(string)

Gets and sets the formula of the list column.

setFormula(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getTotalsRowLabel()

Gets and sets the display labels of total row.

getTotalsRowLabel() : string;

setTotalsRowLabel(string)

Gets and sets the display labels of total row.

setTotalsRowLabel(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getCustomTotalsRowFormula(boolean, boolean)

Gets the formula of totals row of this list column.

getCustomTotalsRowFormula(isR1C1: boolean, isLocal: boolean) : string;

Parameters:

ParameterTypeDescription
isR1C1booleanWhether the formula needs to be formatted as R1C1.
isLocalbooleanWhether the formula needs to be formatted by locale.

Returns

The formula of this list column.

setCustomTotalsRowFormula(string, boolean, boolean)

Gets the formula of totals row of this list column.

setCustomTotalsRowFormula(formula: string, isR1C1: boolean, isLocal: boolean) : void;

Parameters:

ParameterTypeDescription
formulastringthe formula for this list column.
isR1C1booleanWhether the formula needs to be formatted as R1C1.
isLocalbooleanWhether the formula needs to be formatted by locale.

getCustomCalculatedFormula(boolean, boolean)

Gets the formula of this list column.

getCustomCalculatedFormula(isR1C1: boolean, isLocal: boolean) : string;

Parameters:

ParameterTypeDescription
isR1C1booleanWhether the formula needs to be formatted as R1C1.
isLocalbooleanWhether the formula needs to be formatted by locale.

Returns

The formula of this list column.

setCustomCalculatedFormula(string, boolean, boolean)

Sets the formula for this list column.

setCustomCalculatedFormula(formula: string, isR1C1: boolean, isLocal: boolean) : void;

Parameters:

ParameterTypeDescription
formulastringthe formula for this list column.
isR1C1booleanWhether the formula needs to be formatted as R1C1.
isLocalbooleanWhether the formula needs to be formatted by locale.

getDataStyle()

Gets the style of the data in this column of the table.

getDataStyle() : Style;

Returns

Style

setDataStyle(Style)

Sets the style of the data in this column of the table.

setDataStyle(style: Style) : void;

Parameters:

ParameterTypeDescription
styleStyle

isNull()

Checks whether the implementation object is null.

isNull() : boolean;