Javascript: TXTextControl.setTextFrameMarkerLines Method
Description
Sets whether text frames that have no border line are shown with marker lines.
Syntax
<void> TXTextControl.setTextFrameMarkerLines(<boolean> textFrameMarkerLines, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| textFrameMarkerLines | Specifies whether text frames that have no border line are shown with marker lines. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.setTextFrameMarkerLines in a practical document-editing workflow. It sets whether text frames that have no border line are shown with marker lines.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setTextFrameMarkerLines(
true,
function() {
console.log("set text frame marker lines completed.");
},
onTxError
);