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