# TextControl Class

> The TextControl class represents an extension object implementing the Text Control rich text editor functionality. To create an instance of this class and render an editor in an ASP.NET MVC application the ControlsFactory class is used. (See also ControlsFactory.TextControl method)

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Inherits:** `TXTextControl.Web.MVC.ControlBase`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControl Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/#members)

---

## In This Section

- [TextControl Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/constructor/llms.txt): Initializes a new instance of the TextControl class.
- [TextControl.LoadDataFromJson Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddatafromjson-method/llms.txt): Uses data given as a JSON string as a data source. The JSON string has to contain an array of equally structured objects. Analyzes and uses the given objects as merge data in the same way as the method LoadDataFromModel.
- [TextControl.LoadDataFromModel Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddatafrommodel-method/llms.txt): Loads a collection implementing interface System.Collections.IEnumerable as a data source.
- [TextControl.LoadDataSet Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddataset-method/llms.txt): Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object.
- [TextControl.LoadText Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loadtext-method/llms.txt): Loads text in a certain format. The complete contents of a TextControl are replaced.
- [TextControl.LoadXMLDatabase Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loadxmldatabase-method/llms.txt): Loads an XML database which is used to create table and field name menu items in the mailings ribbon tab.
- [TextControl.SetFileDirectory Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/setfiledirectory-method/llms.txt): Determines the directory path where the files of a specific file type are stored.

---

## Nearby

- **Previous:** [HtmlHelperExtension.TXTextControl Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/htmlhelperextension/txtextcontrol-method/llms.txt)
- **Next:** [TextControl Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/constructor/llms.txt)
