# TextControlController.GetChars Method

> Creates and returns a List of Char models that contains the text and the position of each character.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer > TextControlController.GetChars Method
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getchars-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getchars-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getchars-method/llms-full.txt

---

### Description

Creates and returns a List of Char models that contains the text and the position of each character.

### Syntax

#### GetChars()

Creates and returns a List of Char models that contains the text and the position of each character.

Only for .NET 8.

```csharp
public Microsoft.AspNetCore.Mvc.ActionResult GetChars();
```

```vbnet
Public Function GetChars() As Microsoft.AspNetCore.Mvc.ActionResult
```

#### GetChars()

Only for .NET Framework 4.5.

```csharp
public System.Web.Mvc.ActionResult GetChars();
```

```vbnet
Public Function GetChars() As System.Web.Mvc.ActionResult
```

---

## Nearby

- **Previous:** [TextControlController.Download Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/download-method/llms-full.txt)
- **Next:** [TextControlController.GetDocumentViewerAsset Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getdocumentviewerasset-method/llms-full.txt)
