# Javascript: SectionFormat.setEqualColumnWidth Method

> Sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.

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

---

### Description

Sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.

### Syntax

```javascript
<void> SectionFormat.setEqualColumnWidth(<boolean> equalColumnWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| equalColumnWidth | Indicates whether the columns on a page have all the same width and the same distance between them. |
| 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.setEqualColumnWidth` in a practical document-editing workflow. It sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.

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

function configureEqualColumnWidth(sectionFormat) {
    sectionFormat.setEqualColumnWidth(
        true,
        function() {
            console.log("set equal column width completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: SectionFormat.setColumnWidths Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setcolumnwidths-method/llms-full.txt)
- **Next:** [Javascript: SectionFormat.setLandscape Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/setlandscape-method/llms-full.txt)
