Javascript: TXTextControl.setDrawingMarkerLines Method
Description
Sets whether a marker frame is shown around a drawing to indicate its position and size.
Syntax
<void> TXTextControl.setDrawingMarkerLines(<boolean> drawingMarkerLines, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| drawingMarkerLines | Specifies whether a marker frame is shown around a drawing to indicate its position and size. |
| 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.setDrawingMarkerLines in a practical document-editing workflow. It sets whether a marker frame is shown around a drawing to indicate its position and size.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setDrawingMarkerLines(
true,
function() {
console.log("set drawing marker lines completed.");
},
onTxError
);