Javascript: ParagraphFormat.getBottomDistance Method
Description
Gets the bottom distance, in twips, between this and the next paragraph.
Syntax
<void> ParagraphFormat.getBottomDistance(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the bottom distance, in twips, between this and the next paragraph. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.getBottomDistance in a practical document-editing workflow. It gets the bottom distance, in twips, between this and the next paragraph.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.getBottomDistance(
function(result) {
console.log("get bottom distance result:", result);
},
onTxError
);