SetHidden
function SetHidden(isHidden: boolean = null): void
Description
Sets the value hiding property. The specified range must span an entire column or row.
Parameters
- isHidden
boolean
null Specifies if the values in the current range are hidden or not.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRows("1:3");
oRange.SetHidden(true);
oWorksheet.GetRange("A1").SetValue("1");
oWorksheet.GetRange("B1").SetValue("2");
oWorksheet.GetRange("C1").SetValue("3");
var bHidden = oRange.GetHidden();
oWorksheet.GetRange("A4").SetValue("The values from A1:C1 are hidden: " + bHidden);