Javascript: PageBorder.setRightLineWidth Method
Description
Sets the width of the right border line.
Syntax
<void> PageBorder.setRightLineWidth(<number> rightLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| rightLineWidth | The width of the right 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.setRightLineWidth in a practical document-editing workflow. It sets the width of the right border line.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureRightLineWidth(pageBorder) {
pageBorder.setRightLineWidth(
1440,
function() {
console.log("set right line width completed.");
},
onTxError
);
}