# Javascript: TXTextControl.setDrawingMarkerLines Method

> Sets whether a marker frame is shown around a drawing to indicate its position and size.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.setDrawingMarkerLines Method
- **364 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/setdrawingmarkerlines-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/setdrawingmarkerlines-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/setdrawingmarkerlines-method/llms-full.txt

---

### Description

Sets whether a marker frame is shown around a drawing to indicate its position and size.

### Syntax

```javascript
<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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.setDocumentTargetMarkers Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/setdocumenttargetmarkers-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.setEditableRegionHighlightMode Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/seteditableregionhighlightmode-method/llms-full.txt)
