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