# TextCharCollection.Item Property

> Gets the character from the collection. In C# this property is the indexer for the TextCharCollection class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > TextCharCollection.Item Property
- **461 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcharcollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcharcollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcharcollection/item-property/llms-full.txt

---

### Description

Gets the character from the collection. In C# this property is the indexer for the TextCharCollection class.

### Syntax

```csharp
public TextChar this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As TextChar
```

### Examples

The following example works with text chars in the current document by using `TextCharCollection.Item`.

```csharp
TextCharCollection textCharCollection = textControl.TextChars;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";

Console.WriteLine($"Item: {textCharCollection[10]}");
Console.WriteLine("Text Char Collection is ready for use.");
```

```vbnet
Dim textCharCollection As TextCharCollection = textControl.TextChars
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."

Console.WriteLine($"Item: {textCharCollection.Item(10)}")
Console.WriteLine("Text Char Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextCharCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcharcollection/getitem-method/llms-full.txt)
- **Next:** [TextCharCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcharcollection/remove-method/llms-full.txt)
