SetVisible

function SetVisible(isVisible: boolean = null): void

Description

Sets the state of sheet visibility.

Parameters

isVisiblebooleandefault: null

Specifies if the sheet is visible or not.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetVisible(true);
oWorksheet.GetRange("A1").SetValue("The current worksheet is visible.");

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).