Javascript: PageMargins.getBottom Method
Description
Gets the bottom margin of a TX Text Control document or document section.
Syntax
<void> PageMargins.getBottom(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the bottom margin of a TX Text Control document or document section. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageMargins.getBottom in a practical document-editing workflow. It gets the bottom margin of a TX Text Control document or document section.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.pageMargins.getBottom(
function(result) {
console.log("get bottom result:", result);
},
onTxError
);