# TableCellFormat.TextType Property

> Gets or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text When the type is Standard, the cell's text is interpreted as text and it is displayed as it is. When the type is Number, the cell's text is interpreted as a number. The period character (.) is defined as decimal separator, the comma character (,) is defined as thousands separator.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **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 > TableCellFormat.TextType Property
- **666 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/texttype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/texttype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/texttype-property/llms-full.txt

---

### Description

Gets or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text When the type is `Standard`, the cell's text is interpreted as text and it is displayed as it is. When the type is `Number`, the cell's text is interpreted as a number. The period character (.) is defined as decimal separator, the comma character (,) is defined as thousands separator.

### Syntax

```csharp
public TextType TextType { get; set; }
```

```vbnet
Public Property TextType As TextType
```

### Members

| Value | Description |
|---|---|
| Standard | The text is displayed as it is. |
| Number | The text is interpreted as a number. The period character (.) is defined as decimal separator, the comma character (,) is defined as thousands separator. |

### Examples

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

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

tableCellFormat.TextType = TextType.Standard;
Console.WriteLine($"Text Type used by Table Cell Format: {tableCellFormat.TextType}");
```

```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.TextType = TextType.Standard
Console.WriteLine($"Text Type used by Table Cell Format: {tableCellFormat.TextType}")
```

---

## Nearby

- **Previous:** [TableCellFormat.RightTextDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/righttextdistance-property/llms-full.txt)
- **Next:** [TableCellFormat.TopBorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tablecellformat/topbordercolor-property/llms-full.txt)
