Skip to content

DefinedName

DefinedName object. Instances of this are stored in Workbook._globals and WorkSheet._locallyScopedNames.

new DefinedName(orgCell, name?, container?): DefinedName

Construct a DefinedName instance.

object to copy attributes from (all optional, this may be empty)

DefinedName | { f?: string; }

the name of the defined name

null | string

CellContainer

DefinedName

_ast: ASTRootNode

Cached abstract syntax tree, if this.f has been parsed.

CellInterface._ast


_container: null | CellContainer = null

CellInterface._container


_spill: null = null

Explicitly null-typed in defined names, which are never part of a spill.

CellInterface._spill


f: null | string

formula, if any

CellInterface.f


ft: "a" = 'a'

Formula type is always ‘a’ for defined names.

CellInterface.ft


id: string

this defined name’s name

CellInterface.id


neutralizedFormula: null | string = null

Formula which was neutralized by a write to/overlapping this cell

CellInterface.neutralizedFormula


state: number

State for recalcWithMarkAndEvalQueue

CellInterface.state


vertexId: NameVertexId

Cached vertex ID for this defined name. Storing this avoids repeatedly constructing NameVertexId instances in hot paths.

CellInterface.vertexId

get formulaZ(): null | string

The defined name’s formula-assigned number format, if present.

null | string

CellInterface.formulaZ


get isInternal(): boolean

Whether this defined name is an internal implementation detail (cached formula cell or extracted subexpression) that should not be serialized or exposed to users.

boolean


get sheetIndex(): null | number

null | number

CellInterface.sheetIndex


get v(): FormulaValue

FormulaValue

set v(value): void

Set the value of the defined name. If the value is a boxed value, the number format will become the defined name’s formula-assigned number format.

MaybeBoxedFormulaValue

void

CellInterface.v


get valueBoxed(): MaybeBoxedFormulaValue

The value of the defined name. If the value has a formula-assigned number format, the value will be a boxed value containing that number format.

MaybeBoxedFormulaValue

CellInterface.valueBoxed


get workbookKey(): number

number

CellInterface.workbookKey


get z(): null | string

The effective number format of the defined name. Null unless propagated from number formats of referenced cells.

null | string

CellInterface.z

clear(): void

void

CellInterface.clear


edit(cellData): void

JSFCellExpanded

void

CellInterface.edit


hasValue(): boolean

boolean

CellInterface.hasValue


hasValueOrFormula(): boolean

boolean

CellInterface.hasValueOrFormula


isBlank(): boolean

boolean

hasValueOrFormula

CellInterface.isBlank


isSpillAnchor(): boolean

boolean

CellInterface.isSpillAnchor


isSpilled(): this is Cell & { _spill: { valid: true }; F: string; sheetIndex: number }

this is Cell & { _spill: { valid: true }; F: string; sheetIndex: number }

CellInterface.isSpilled


spillHeight(): number

number

CellInterface.spillHeight


spillWidth(): number

number

CellInterface.spillWidth


toString(): string

string

CellInterface.toString