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