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