Javascript: FormattingStyle.setFontSize Method
Description
Sets the font's size of the style.
Syntax
<void> FormattingStyle.setFontSize(<Number> fontSize, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| fontSize | The font's size of the style. |
| callback | Is called when the operation completed. |
Examples
The following example demonstrates FormattingStyle.setFontSize in a practical document-editing workflow. It sets the font's size of the style.
function configureFontSize(formattingStyle) {
formattingStyle.setFontSize(
1,
function() {
console.log("set font size completed.");
}
);
}