Skip to content

ws.settings

WorksheetSettings

Sub-API for worksheet settings operations.

5 methods

get

Promise<SheetSettingsInfo>
get(): Promise<SheetSettingsInfo>;

Get all sheet settings. @returns Current sheet settings

set

Promise<void>
set<K extends keyof SheetSettingsInfo>(key: K, value: SheetSettingsInfo[K]): Promise<void>;
ParameterTypeRequired
keyKrequired
valueSheetSettingsInfo[K]required

Set an individual sheet setting by key. @param key - Setting key (e.g., 'showGridlines', 'defaultRowHeight') @param value - New value for the setting

getStandardHeight

Promise<number>
getStandardHeight(): Promise<number>;

Get the standard (default) row height in pixels. This is the height used for rows that haven't been explicitly sized. Read-only (matches spreadsheet special-cell typesemantics).

getStandardWidth

Promise<number>
getStandardWidth(): Promise<number>;

Get the standard (default) column width in pixels. This is the width used for columns that haven't been explicitly sized.

setStandardWidth

Promise<void>
setStandardWidth(width: number): Promise<void>;
ParameterTypeRequired
widthnumberrequired

Set the standard (default) column width in pixels. This changes the default width for all columns that haven't been explicitly sized. @param width - New default column width in pixels