Returns the header at a given offset. Will only return null for invalid header offset. To get a list of headers use getRange.
0-based absolute index.
Batches all 'transactional' changes until they have all be committed or rolled back.
Optional
options: string | OperationOptionsDescription of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation
.
Any changes that are made to this object will be reflected in the local record but not committed to the transactional store until the batch is popped.
Useful for operations that are longer running but generally not recommended as it keeps a transaction open. doBatch is the preferred option.
Close the record and cleans resources. Can't be undone.
Provides a mechanism to perform a set of operations in a batch.
A callback that performs multiple operations all within the same transaction.
Optional
options: string | OperationOptionsDescription of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation
.
Finds the index for the given header offset in pixels.
0-based pixels.
Finds the offset in pixels for the given header index
0-based absolute index.
Finds the visibleIndex for a given absolute index.
0-based absolute index.
A RunCoords that can be used to determine if an index is hidden.
Load the ISheetHeader.JSON state into the header. The current state will be lost.
The default header size if not adjusted.
The maximum size of the header in native units.
The minimum size of the header in native units.
The orientation the headers manage.
Returns a range of cells for the specified range.
Optional
options: GetRangeOptionsAll header sizes are returned in pixels. This is done by multiplying the scaleFactor by the size on the cellHeader.
Returns the actives that are used in the selection.
Optional
options: GetRangeOptionsReturns a list of SelectedRuns.
Returns the sheet model used for the header.
Returns the size of the header in pixels. If a second argument is passed it will be the size of all the headers within the range. Note - It is expected that indexFrom will always be less than or equal to indexTo
Optional
indexTo: numberReturns a displayable title for the given index.
0-based absolute index.
Returns the data ranges for headers that contain information.
Optional
options: GetRangeOptionsOptional
getReturns the number of indices visible. Between to indices.
Returns true if any of the headers have the isHidden flag set to true or if any sizes are 0.
This is a very specific optimization function. When
hiding many headers instead of scanning we can just skip.
If 0
is returned then there are no hidden headers immediately
following this one. If 1
is returned then only this header is hidden.
The location to start the search.
Optional
reverse: booleanIndicates if search should scan in reverse. defaults to false
.
The number of headers following the index.
Returns true
if no more operations are allowed.
Returns a flag indicating if the headers are protected by the sheet.
Returns true if header has a selection at the given index.
Returns true if header has a max selection at the given index.
Optional
hidden: booleanOptional
size: string | numberOptional
options: SetSizeOptionsSave the header state to a JSON object.
Bulk update api.
Optional
options: UpdateHeadersOptionsThis only supports one range at a time but offers a few flavors
Sets the headers. This supports setting values as a batch.
Optional
options: UpdateHeadersOptions
Provides a programmatic interface for interacting with and modifying entire rows or columns in a spreadsheet, allowing for actions such as inserting, deleting, resizing, and applying formatting changes.