Javascript: FormattingStyle.getStrikeout Method
Description
Gets the strikeout attribute of the style.
Syntax
<void> FormattingStyle.getStrikeout(<RequestBooleanCallback> callback)Parameters
| Parameter | Description |
|---|---|
| callback | Receives the strikeout attribute of the style. |
Examples
The following example demonstrates FormattingStyle.getStrikeout in a practical document-editing workflow. It gets the strikeout attribute of the style.
function inspectStrikeout(formattingStyle) {
formattingStyle.getStrikeout(
function(result) {
if (result) {
console.log("get strikeout is available.");
} else {
console.warn("get strikeout is not available in the current document state.");
}
}
);
}