# TextChar Class

> An instance of the TextChar class represents a single character in a Text Control document.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 10.1
- **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 > TextChar Class
- **483 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/llms-full.txt

---

### Description

An instance of the TextChar class represents a single character in a Text Control document.

### Syntax

```csharp
public class TextChar
```

```vbnet
Public Class TextChar
```

### Examples

The following example examines the first text char in a short document.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
TextChar textChar = textControl.TextChars[1];
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim textChar As TextChar = textControl.TextChars(1)
```

---

## In This Section

- [TextChar.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/bounds-property/llms-full.txt): Gets the bounding rectangle of the character. The values are given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property.
- [TextChar.Char Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/char-property/llms-full.txt): Gets the value of the character.
- [TextChar.Number Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/number-property/llms-full.txt): Gets the character's number. The first character has the number 1.

---

## Nearby

- **Previous:** [TabType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/tabtype/enumeration/llms-full.txt)
- **Next:** [TextChar.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textchar/bounds-property/llms-full.txt)
