Skip to main content

SetDoubleStrikeout

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

Syntax

expression.SetDoubleStrikeout(isDoubleStrikeout);

expression - A variable that represents a ApiParagraph class.

Parameters

NameRequired/OptionalData typeDefaultDescription
isDoubleStrikeoutRequiredbooleanSpecifies that the contents of the current paragraph are displayed double struck through.

Returns

ApiParagraph

Example

Specify that the contents of this paragraph are displayed with two horizontal lines through each character displayed on the line in a document.

// How to strike out a text with two lines in a document.

// Create a new paragraph and set double strikeout to it in a document.

let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("This is a paragraph with the text struck out with two lines.");
paragraph.SetDoubleStrikeout(true);