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