Javascript: PageBorder.getTopLineColor Method
Description
Gets the color of the top border line.
Syntax
<void> PageBorder.getTopLineColor(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the color of the top border line. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageBorder.getTopLineColor in a practical document-editing workflow. It gets the color of the top border line.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTopLineColor(pageBorder) {
pageBorder.getTopLineColor(
function(result) {
if (result) {
console.log("get top line color is available.");
} else {
console.warn("get top line color is not available in the current document state.");
}
},
onTxError
);
}