Get Started
Documentation

SetDoubleStrikeout

SetDoubleStrikeout(isDoubleStrikeout) → { ApiParagraph }

Specify that the contents of this paragraph 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 paragraph are displayed double struck through.

Returns:

Type
ApiParagraph

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is a paragraph with the text struck out with two lines.");
oParagraph.SetDoubleStrikeout(true);
builder.SaveFile("docx", "SetDoubleStrikeout.docx");
builder.CloseFile();