A class that represents values which can be assigned to cells. It provides factory methods for values with different types and units.
Remarks
Type Parameters
TValue
Members
Properties
Methods
Static Methods
Parameters
- value: boolean
The value.
- formula?: string | VsdxFormula
An optional formula.
Parameters
- date: Date
The date.
- formula?: string | VsdxFormula
. An optional formula.
Parameters
- value: number
The enum value as number.
- formula?: string | VsdxFormula
An optional formula.
Returns the value for the given object and cell name.
Returns the value for the given object and cell name.
If the object itself does not contain a cell with the given name, it tries to find whether this value is inherited from a master shape or style sheet. If yes, this value will be returned, otherwise a new Value with null value will be returned.
You can use this method to safely retrieve references e.g. for writing formulas with template strings.
Parameters
- object: VsdxObject
- cellName: string
Parameters
- font: string
The font string.
- formula?: string | VsdxFormula
An optional formula.
Returns a Value object with the given formula and unit. Note that VSDX viewers do not
necessarily evaluate formulas and the VSDX Export evaluates them only when the
VsdxExportConfiguration.evaluateFormulas is set to true.
Returns a Value object with the given formula and unit. Note that VSDX viewers do not necessarily evaluate formulas and the VSDX Export evaluates them only when the VsdxExportConfiguration.evaluateFormulas is set to true.
Parameters
- formula: string | VsdxFormula
The formula.
- displayUnit?: string
The unit that will be displayed in the VSDX viewer for this cell.