CellValue

CellValue class

Represents the cell value and corresponding type.

class CellValue;

Constructors

NameDescription
constructor()Default Constructor.

Methods

MethodDescription
getType()Gets/sets the type of cell value.
setType(CellValueType)Gets/sets the type of cell value.
getValue()Gets/sets the cell value.
setValue(object)Gets/sets the cell value.
isNull()Checks whether the implementation object is null.

constructor()

Default Constructor.

constructor();

getType()

Gets/sets the type of cell value.

getType() : CellValueType;

Returns

CellValueType

setType(CellValueType)

Gets/sets the type of cell value.

setType(value: CellValueType) : void;

Parameters:

ParameterTypeDescription
valueCellValueTypeThe value to set.

getValue()

Gets/sets the cell value.

getValue() : object;

Remarks

The value must be of the correct type of object corresponding to the Type: Type Value CellValueType.IsNull null, any other object will be ignored CellValueType.IsNumeric double CellValueType.IsDateTime DateTime CellValueType.IsString string CellValueType.IsBool bool CellValueType.IsError error string such as “#VALUE!”, “#NAME?”, … </list

setValue(object)

Gets/sets the cell value.

setValue(value: object) : void;

Parameters:

ParameterTypeDescription
valueobjectThe value to set.

Remarks

The value must be of the correct type of object corresponding to the Type: Type Value CellValueType.IsNull null, any other object will be ignored CellValueType.IsNumeric double CellValueType.IsDateTime DateTime CellValueType.IsString string CellValueType.IsBool bool CellValueType.IsError error string such as “#VALUE!”, “#NAME?”, … </list

isNull()

Checks whether the implementation object is null.

isNull() : boolean;