Dimension.setHidden Method
Sets explicit visibility, retaining cell data and size. Undoable; sheet protection applies.
Owner: Dimension. Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Syntax
owner.setHidden(hidden)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
hidden | boolean | No | True hides this dimension; false restores its stored size. |
Return Value
Dimension.
Exceptions
TypeError for non-boolean values; RangeError for stale or invalid handles.
Examples
Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.
function applyDimensionSetHidden(control) {
const book = control.workbook;
const dimension = book.sheets.at(0).rows.at(0);
const result = dimension.setHidden(true);
return result;
}
Remarks
Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.