# TableCell.Width Property

> Gets or sets, in twips, the width of the cell.

- **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 > TableCell.Width Property
- **463 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecell/width-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecell/width-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecell/width-property/llms-full.txt

---

### Description

Gets or sets, in twips, the width of the cell.

### 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 `TableCell.Width`.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCell tableCell = table.Cells[2, 2];

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

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

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

---

## Nearby

- **Previous:** [TableCell.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecell/text-property/llms-full.txt)
- **Next:** [TableCellCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellcollection/llms-full.txt)
