# TableRow.CellFormat Property

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

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

---

### Description

Gets or sets the formatting attributes of a table row. The property's value is an object of the type [TableCellFormat](https://docs.textcontrol.com/tx-text-control-dotnet-server/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 `TableRow.CellFormat`.

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableRow tableRow = table.Rows[1];

tableRow.CellFormat = new TableCellFormat();
tableRow.Select();
```

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableRow As TableRow = table.Rows(1)

tableRow.CellFormat = New TableCellFormat()
tableRow.Select()
```

---

## Nearby

- **Previous:** [TableRow.AllowPageBreak Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerow/allowpagebreak-property/llms-full.txt)
- **Next:** [TableRow.IsHeader Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablerow/isheader-property/llms-full.txt)
