SetStrikeout
function SetStrikeout(isStrikeout: boolean = null): void
Description
Specifies that the contents of the cell / cell range are displayed with a single horizontal line through the center of the contents.
Parameters
- isStrikeout
boolean
null Specifies if the contents of the current cell / cell range are displayed struck through.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A2").SetValue("Struckout text");
oWorksheet.GetRange("A2").SetStrikeout(true);
oWorksheet.GetRange("A3").SetValue("Normal text");