跳到主要内容

SetDoubleStrikeout

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

Syntax

expression.SetDoubleStrikeout(isDoubleStrikeout);

expression - A variable that represents a ApiRange class.

Parameters

NameRequired/OptionalData typeDefaultDescription
isDoubleStrikeoutRequiredbooleanSpecifies if the contents of the current Range are displayed double struck through or not.

Returns

ApiRange | null

Example

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

let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("ONLYOFFICE Document Server Builder");
let range = doc.GetRange(18, 23);
range.SetDoubleStrikeout(true);