Javascript: FormattingStyle.setStrikeout Method
Description
Sets the strikeout attribute of the style.
Syntax
<void> FormattingStyle.setStrikeout(<Boolean> strikeout, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| strikeout | The strikeout attribute of the style. |
| callback | Is called when the operation completed. |
Examples
The following example demonstrates FormattingStyle.setStrikeout in a practical document-editing workflow. It sets the strikeout attribute of the style.
function configureStrikeout(formattingStyle) {
formattingStyle.setStrikeout(
true,
function() {
console.log("set strikeout completed.");
}
);
}