WorkbookView
A single workbook view, bound to its index in workbook.views. Gives access to per-sheet view
state.
Obtain via workbook.views.get(index); do not construct directly.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WorkbookView(workbook: Workbook, index: number): WorkbookView;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
workbook |
Workbook |
index |
number |
Returns
Section titled “Returns”WorkbookView
Methods
Section titled “Methods”getFrozenPanes()
Section titled “getFrozenPanes()”getFrozenPanes(sheetName: string): WorksheetViewFrozenPanes | null;Return the frozen panes for a given sheet in this workbook view, if the sheet has them.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
sheetName |
string |
Name of the sheet whose frozen panes you want |
Returns
Section titled “Returns”WorksheetViewFrozenPanes | null
A copy of the JSF frozen panes, or null if the sheet has none
Throws
Section titled “Throws”If a sheet with the given name doesn’t exist