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

isStrikeoutbooleandefault: 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");

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).