Represents a named reference defined in the workbook.

NamedReference

new NamedReference(a: number, b: NamedReferenceCollection, c: any): NamedReference

Returns NamedReference

$t: Type

Inherited from: NamedReferenceBase

comment: string

Inherited from: NamedReferenceBase

name: string

Gets the formula which defines the named reference. The formula which defines the named reference.

get formula(): string

Returns string

Gets the value indicating whether the [[formula]] is a simple formula referring to a single cell, a single region, or multiple regions in the same workbook as the named reference.

get isSimpleReferenceFormula(): boolean

Returns boolean

Gets the [[WorksheetCell]] referenced by the [[formula]].

get referencedCell(): WorksheetCell

Returns WorksheetCell

Gets the [[WorksheetRegion]] referenced by the [[formula]].

get referencedRegion(): WorksheetRegion

Returns WorksheetRegion

Gets the array of [[WorksheetRegion]] instances referenced by the [[formula]].

get referencedRegions(): WorksheetRegion[]

Returns WorksheetRegion[]

Inherited from: NamedReferenceBase

Gets the scope of the named reference.

get scope(): any

Returns any

Sets the formula for a named reference.

setFormula(formula: string): void

Parameters

  • formula: string

    The string containing the formula value.

Returns void

Gets the string representation of the named reference.

toString(): string

Returns string