# Javascript: SectionFormat.getEqualColumnWidth Method

> Gets 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.getEqualColumnWidth Method
- **468 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getequalcolumnwidth-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getequalcolumnwidth-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getequalcolumnwidth-method/llms-full.txt

---

### Description

Gets 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.getEqualColumnWidth(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives a value indicating whether the columns on a page have all the same width and the same distance between them. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `SectionFormat.getEqualColumnWidth` in a practical document-editing workflow. It gets 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 inspectEqualColumnWidth(sectionFormat) {
    sectionFormat.getEqualColumnWidth(
        function(result) {
            if (result) {
                console.log("get equal column width is available.");
            } else {
                console.warn("get equal column width is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: SectionFormat.getColumnWidths Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getcolumnwidths-method/llms-full.txt)
- **Next:** [Javascript: SectionFormat.getLandscape Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getlandscape-method/llms-full.txt)
