# Javascript: PageBorder.setLeftLineWidth Method

> Sets the width of the left border line.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: PageBorder.setLeftLineWidth Method
- **361 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/pageborder/setleftlinewidth-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/pageborder/setleftlinewidth-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/pageborder/setleftlinewidth-method/llms-full.txt

---

### Description

Sets the width of the left border line.

### Syntax

```javascript
<void> PageBorder.setLeftLineWidth(<number> leftLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| leftLineWidth | The width of the left border line. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `PageBorder.setLeftLineWidth` in a practical document-editing workflow. It sets the width of the left border line.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureLeftLineWidth(pageBorder) {
    pageBorder.setLeftLineWidth(
        1440,
        function() {
            console.log("set left line width completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: PageBorder.setLeftLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/pageborder/setleftlinecolor-method/llms-full.txt)
- **Next:** [Javascript: PageBorder.setMeasureFromText Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/pageborder/setmeasurefromtext-method/llms-full.txt)
