# TableCell.CellFormat Property

> Gets or sets the formatting attributes of a table cell. The property's value is an object of the type TableCellFormat.

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

---

### Description

Gets or sets the formatting attributes of a table cell. The property's value is an object of the type [TableCellFormat](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/llms-full.txt).

### Syntax

```csharp
public TableCellFormat CellFormat { get; set; }
```

```vbnet
Public Property CellFormat As TableCellFormat
```

### Examples

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

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

tableCell.CellFormat = new TableCellFormat();
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.CellFormat = New TableCellFormat()
tableCell.Select()
```

---

## Nearby

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