# Table.Columns Property

> Gets a collection of all columns the table consists of. The property's value is an object of the type TableColumnCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl > Table.Columns Property
- **466 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/columns-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/columns-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/columns-property/llms-full.txt

---

### Description

Gets a collection of all columns the table consists of. The property's value is an object of the type [TableColumnCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecolumncollection/llms-full.txt).

### Syntax

```csharp
public TableColumnCollection Columns { get; }
```

```vbnet
Public ReadOnly Property Columns As TableColumnCollection
```

### Examples

The following example gives every column in a table a width of 2,000 twips.

```csharp
textControl.Tables.Add(2, 3, 10);
Table table = textControl.Tables.GetItem(10);

foreach (TableColumn column in table.Columns)
{
    column.Width = 2000;
}
```

```vbnet
textControl.Tables.Add(2, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)

For Each column As TableColumn In table.Columns
    column.Width = 2000
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Table.Cells Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/cells-property/llms-full.txt)
- **Next:** [Table.DescriptiveText Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/table/descriptivetext-property/llms-full.txt)
