# TableColumn.Width Property

> Gets or sets, in twips, the width of the column. If the cells of the column have different widths, the property returns 0.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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 > TableColumn.Width Property
- **465 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumn/width-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumn/width-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumn/width-property/llms-full.txt

---

### Description

Gets or sets, in twips, the width of the column. If the cells of the column have different widths, the property returns 0.

### Syntax

```csharp
public int Width { get; set; }
```

```vbnet
Public Property Width As Integer
```

### Examples

The following example creates a small report table and works with its structure by using `TableColumn.Width`.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableColumn tableColumn = table.Columns[2];

tableColumn.Width = 100;
tableColumn.Select();
```

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

tableColumn.Width = 100
tableColumn.Select()
```

---

## Nearby

- **Previous:** [TableColumn.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumn/select-method/llms-full.txt)
- **Next:** [TableColumnCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecolumncollection/llms-full.txt)
