Javascript: PageBorder.setBottomLineWidth Method
Description
Sets the width of the bottom border line.
Syntax
<void> PageBorder.setBottomLineWidth(<number> bottomLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| bottomLineWidth | The width of the bottom border line. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageBorder.setBottomLineWidth in a practical document-editing workflow. It sets the width of the bottom border line.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureBottomLineWidth(pageBorder) {
pageBorder.setBottomLineWidth(
1440,
function() {
console.log("set bottom line width completed.");
},
onTxError
);
}