Represents a named reference defined in the workbook.

NamedReference

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

Returns NamedReference

Inherited from: NamedReferenceBase

Gets or sets the comment associated with the named reference or table. The comment associated with the named reference or table.

get comment(): string

Returns string

set comment(a: string): void

Parameters

  • a: string

Returns void

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

Inherited from: NamedReferenceBase

Gets or sets the name of the reference.

get name(): string

Returns string

set name(a: string): void

Parameters

  • a: string

Returns void

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