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