SetVisible
Sets the state of sheet visibility.
Syntax
expression.SetVisible(isVisible);
expression - A variable that represents a ApiWorksheet class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| isVisible | Required | boolean | Specifies if the sheet is visible or not. |
Returns
This method doesn't return any data.
Example
Set the state of sheet visibility in a spreadsheet.
// How to set visibility of the sheet in a spreadsheet.
// Make a sheet visible or not in a spreadsheet.
let worksheet = Api.GetActiveSheet();
worksheet.SetVisible(true);
worksheet.GetRange("A1").SetValue("The current worksheet is visible.");