Javascript: FormattingStyle.getBaseStyle Method
Description
Gets the FormattingStyle which is the base style of this style.
Syntax
<void> FormattingStyle.getBaseStyle(<RequestFormattingStyleCallback> callback)Parameters
| Parameter | Description |
|---|---|
| callback | Receives the FormattingStyle which is the base style of this style. |
Examples
The following example demonstrates FormattingStyle.getBaseStyle in a practical document-editing workflow. It gets the FormattingStyle which is the base style of this style.
function inspectBaseStyle(formattingStyle) {
formattingStyle.getBaseStyle(
function(style) {
if (!style) {
console.warn("No formatting style was returned.");
return;
}
console.log("get base style result:", style);
}
);
}