Skip to content

A1Ref

Represents a reference to a range of cells in A1 notation.

The reference can be created from a string in A1 notation, a range object, or another A1Ref instance. The reference also includes optional workbook and sheet names, which can be provided in the context or parsed from the string.

The reference validates that the range is within the maximum allowed columns and rows.

new A1Ref(range: string | Range | A1Ref, context?: RefContext): A1Ref;
ParameterType
rangestring | Range | A1Ref
contextRefContext

A1Ref

PropertyType
rangeRange
sheetNamestring
workbookNamestring
get bottom(): number;

number


get height(): number;

number


get left(): number;

number


get right(): number;

number


get top(): number;

number


get width(): number;

number

toString(): string;

string