# SectionFormat.ColumnDistances Property

> Gets the distances, in twips, between the columns on a page. This property is read only, to set new distances one of the SectionFormat constructors must be used.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > SectionFormat.ColumnDistances Property
- **476 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/columndistances-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/columndistances-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/columndistances-property/llms-full.txt

---

### Description

Gets the distances, in twips, between the columns on a page. This property is read only, to set new distances one of the SectionFormat constructors must be used.

### Syntax

```csharp
public int[] ColumnDistances { get; }
```

```vbnet
Public ReadOnly Property ColumnDistances As Integer()
```

### Examples

The following example configures the layout of the first document section by using `SectionFormat.ColumnDistances`.

```csharp
SectionFormat sectionFormat = textControl.Sections[1].Format;

foreach (int int32 in sectionFormat.ColumnDistances)
{
    Console.WriteLine(int32);
}
```

```vbnet
Dim sectionFormat As SectionFormat = textControl.Sections(1).Format

For Each int32 As Integer In sectionFormat.ColumnDistances
    Console.WriteLine(int32)
Next
```

### Limitations

Read only.

### Remarks

The size of the array is: number of columns - 1

The property returns null when the text selection contains multiple sections with mixed setting. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [SectionFormat.BreakKind Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/breakkind-property/llms-full.txt)
- **Next:** [SectionFormat.ColumnLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/columnlinecolor-property/llms-full.txt)
