On this page
What a suggester can read of the workbook while a formula is edited. Rows
and columns are zero-based data positions, the positions formula references
name.
Members
Methods
The workbook's sheets, defined names and tables.
formula ( sheet : SheetId , row : number , col : number ): string | null ;
The formula of a cell as written, with its leading =; null when the cell holds no formula.
The value a cell shows: a formula's result, or the value typed in it.
edge ( sheet : SheetId , row : number , col : number , dRow : number , dCol : number ): number ;
Where Ctrl+Arrow lands from a cell. It is the row (for dRow) or column
(for dCol) at the edge of the block of filled cells. One of dRow and
dCol is -1 or 1, the other 0.
translate ( source : string , dRow : number , dCol : number ): string ;
source copied dRow rows and dCol columns away: its relative
references move, as a fill or paste moves them.
Declaration
View full TypeScript declaration
export interface FormulaSheetReads {
formula ( sheet : SheetId , row : number , col : number ): string | null ; translate ( source : string , dRow : number , dCol : number ): string ;
Referenced by
Public exports naming FormulaSheetReads
interface Workbook {
sheets: Sheet[];
activeSheet: SheetId;
namedRanges?: NamedRangeSnapshot[];
xlsxSource?: XlsxSourceSnapshot;
calculation?: CalculationSettings;
dataModel?: DataModel;
queries?: SavedQuery[];
externalLinks?: ExternalLink[];
} interface Workbook {
sheets : Sheet [];
activeSheet : SheetId ;
namedRanges ?: NamedRangeSnapshot [];
xlsxSource ?: XlsxSourceSnapshot ;
calculation ?: CalculationSettings ;
dataModel ?: DataModel ;
queries ?: SavedQuery [];
externalLinks ?: ExternalLink [];
} interface Workbook {
sheets : Sheet [];
activeSheet : SheetId ;
namedRanges ?: NamedRangeSnapshot [];
xlsxSource ?: XlsxSourceSnapshot ;
calculation ?: CalculationSettings ;
dataModel ?: DataModel ;
queries ?: SavedQuery [];
externalLinks ?: ExternalLink [];
} Live workbook schema containing ordered sheets and the active sheet ID. API reference type SheetId = string; type SheetId = string ; type SheetId = string ; Stable identifier used to address a workbook sheet. API reference type CellScalar = string | number | boolean | null; type CellScalar = string | number | boolean | null ; type CellScalar =
| string
| number
| boolean
| null ; A scalar that can be displayed directly. API reference On this page