Provides methods that manage a composite data type representing a value.

ExcelCalcValue

new ExcelCalcValue(value: any): ExcelCalcValue

Returns ExcelCalcValue

$t: Type

Returns whether this class instance contains an array value.

get isArray(): boolean

Returns boolean

Returns whether this class instance contains a group of array values.

get isArrayGroup(): boolean

Returns boolean

Returns whether this class instance contains a boolean value

get isBoolean(): boolean

Returns boolean

Returns whether this class instance contains a DateTime value

get isDateTime(): boolean

Returns boolean

Returns whether this class instance contains a DBNull value

get isDBNull(): boolean

Returns boolean

Returns whether this class instance contains an error value

get isError(): boolean

Returns boolean

Returns whether this class instance contains a null value

get isNull(): boolean

Returns boolean

Returns whether this class instance contains a [[IExcelCalcReference]] value

get isReference(): boolean

Returns boolean

Returns whether this class instance contains a string value

get isString(): boolean

Returns boolean

Return the underlying value

get value(): any

Returns any

Compares current instance with the passed in [[ExcelCalcValue]] instance. Returns -1, 1 or 0 depending on whether the current instance is less than, greater than or equal to the passed in instance respectively.

compareTo(value: ExcelCalcValue): number

Parameters

  • value: ExcelCalcValue

    The object that this instance should be compared against.

Returns number

Gets the resolved value of the reference. This method will walk down the reference chain recursively to get the resolved value of the reference that is not just another reference.

getResolvedValue(): any

Returns any

Indicates if the specified [[ExcelCalcValue]] has the save [[value]] as this instance.

isSameValue(value: ExcelCalcValue): boolean

Parameters

Returns boolean

Convert this class instance's value to an [[ArrayProxy]] data type.

toArrayProxy(): ArrayProxy

Returns ArrayProxy

Convert this class instance's value to an array group data type.

toArrayProxyGroup(): ArrayProxy[]

Returns ArrayProxy[]

Convert this class instance's value to a boolean data type

toBoolean(provider: IFormatProvider): boolean

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns boolean

Convert this class instance's value to a byte data type

toByte(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this class instance's value to a char type

toChar(provider: IFormatProvider): string

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns string

Convert this class instance's value to a DateTime data type

toDateTime(provider: IFormatProvider): Date

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns Date

Convert this class instance's value to a decimal data type

toDecimal(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this class instance's value to a double data type

toDouble(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this instance's value to an [[ExcelCalcErrorValue]]

toErrorValue(): ExcelCalcErrorValue

Returns ExcelCalcErrorValue

Convert this class instance's value to an int

toInt(): number

Returns number

Convert this class instance's value to a short data type

toInt16(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this class instance's value to a int data type

toInt32(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this class instance's value to a long data type

toInt64(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Convert this instance's value to a [[IExcelCalcReference]].

toReference(): IExcelCalcReference

Returns IExcelCalcReference

Convert this class instance's value to a float data type

toSingle(provider: IFormatProvider): number

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns number

Returns a string representation of this instance's value.

toString(): string

Returns string

Convert this class instance's value to a string instance data type

toString1(provider: IFormatProvider): string

Parameters

  • provider: IFormatProvider

    An IFormatProvider interface implementation that supplies culture-specific formatting information

Returns string

Indicates if the value of the specified [[ExcelCalcValue]] is equivalent to the [[value]]

areValuesEqual(x: ExcelCalcValue, y: ExcelCalcValue): boolean

Parameters

Returns boolean

Compares x and y [[ExcelCalcValue]] instances and returns -1 if x is less than y, 1 if x is greater than y and 0 if x and y are equal.

compareTo(x: ExcelCalcValue, y: ExcelCalcValue): number

Parameters

Returns number

Converts a DateTime to Excel's numerical representation of a date.

dateTimeToExcelDate(workbook: Workbook, dateValue: Date): number

Parameters

  • workbook: Workbook
  • dateValue: Date

    The DateTime value to convert to the Microsoft Excel date format.

Returns number

Converts Excel's numerical representation of a date to a DateTime.

excelDateToDateTime(workbook: Workbook, excelDate: number): Date

Parameters

  • workbook: Workbook
  • excelDate: number

    The Microsoft Excel date format which should be converted to a DateTime.

Returns Date