SetStrikeout
Specifies that the contents of the run are displayed with a single horizontal line through the center of the line.
Inherited from ApiTextPr.SetStrikeout.
Example
Specify that the contents of the current run are displayed with a single horizontal line through the center of the line in a document.
// How to strike out a text with one line in a document.
// Create a text run object, cross out it in a document.
let doc = Api.GetDocument();
let textPr = doc.GetDefaultTextPr();
textPr.SetStrikeout(true);
let paragraph = doc.GetElement(0);
paragraph.AddText("A sample text struck out with a single line.");