# Javascript: InputFormat.setFrameLineWidth Method

> Sets the line width, in twips, of the paragraph's or table's frame at the current input position.

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

---

### Description

Sets the line width, in twips, of the paragraph's or table's frame at the current input position.

### Syntax

```javascript
<void> InputFormat.setFrameLineWidth(<Number> frameLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| frameLineWidth | The line width, in twips, of the paragraph's or table's frame at the current input position. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputFormat.setFrameLineWidth` in a practical document-editing workflow. It sets the line width, in twips, of the paragraph's or table's frame at the current input position.

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

TXTextControl.inputFormat.setFrameLineWidth(
    1440,
    function() {
        console.log("set frame line width completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.setFrameLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setframelinecolor-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.setHangingIndent Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/sethangingindent-method/llms-full.txt)
