Get Started
Documentation

SetDoubleStrikeout

SetDoubleStrikeout(isDoubleStrikeout)

Specify that the contents of this Range is displayed with two horizontal lines through each character displayed on the line.

Parameters:

Name Type Description
isDoubleStrikeout boolean

Specifies that the contents of the current Range are displayed double struck through.

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("ONLYOFFICE Document Server Builder");
oRange = oDocument.GetRange(18, 23);
oRange.SetDoubleStrikeout(true);
builder.SaveFile("docx", "SetDoubleStrikeout.docx");
builder.CloseFile();