# Javascript: SectionFormat.setColumnLineWidth Method

> Sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SectionFormat.setColumnLineWidth Method
- **409 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumnlinewidth-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumnlinewidth-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumnlinewidth-method/llms-full.txt

---

### Description

Sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.

### Syntax

```javascript
<void> SectionFormat.setColumnLineWidth(<number> columnLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| columnLineWidth | The width of a dividing line between two columns. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `SectionFormat.setColumnLineWidth` in a practical document-editing workflow. It sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.

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

function configureColumnLineWidth(sectionFormat) {
    sectionFormat.setColumnLineWidth(
        3,
        function() {
            console.log("set column line width completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: SectionFormat.setColumnLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumnlinecolor-method/llms-full.txt)
- **Next:** [Javascript: SectionFormat.setColumns Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumns-method/llms-full.txt)
