TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

SetDoubleStrikeout

SetDoubleStrikeout(isDoubleStrikeout) → { ApiRange | null }

Specifies that the contents of the current Range are displayed with two horizontal lines through each character displayed on the line.

Parameters:

Name Type Description
isDoubleStrikeout boolean

Specifies if the contents of the current Range are displayed double struck through or not.

Returns:

Type
ApiRange | null

Example

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

Resulting document