# TableCellFormat.BackColor Property

> Gets or sets the table cell's background color.

- **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 > TableCellFormat.BackColor Property
- **536 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellformat/backcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellformat/backcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellformat/backcolor-property/llms-full.txt

---

### Description

Gets or sets the table cell's background color.

### Syntax

```csharp
public Color BackColor { get; set; }
```

```vbnet
Public Property BackColor As Color
```

### Examples

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

```csharp
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellFormat tableCellFormat = table.Cells[1, 1].CellFormat;

tableCellFormat.BackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Back Color used by Table Cell Format: {tableCellFormat.BackColor}");
```

```vbnet
textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellFormat As TableCellFormat = table.Cells(1, 1).CellFormat

tableCellFormat.BackColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Back Color used by Table Cell Format: {tableCellFormat.BackColor}")
```

---

## Nearby

- **Previous:** [TableCellFormat Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellformat/llms-full.txt)
- **Next:** [TableCellFormat.BottomBorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecellformat/bottombordercolor-property/llms-full.txt)
