# TextControl Constructor

> Initializes a new instance of the TextControl class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl Constructor
- **283 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/constructor/llms-full.txt

---

### Description

Initializes a new instance of the TextControl class.

### Syntax

```csharp
public TextControl();
```

```vbnet
Public Sub New()
```

### Examples

The following example creates a Text Control instance and verifies that it is ready for the surrounding document workflow.

```csharp
TXTextControl.Web.MVC.TextControl textControl = new();
Console.WriteLine("Text Control is ready.");
```

```vbnet
Dim textControl As New TXTextControl.Web.MVC.TextControl()
Console.WriteLine("Text Control is ready.")
```

---

## Nearby

- **Previous:** [TextControl.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/backcolor-property/llms-full.txt)
- **Next:** [TextControl.ContextMenusEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/contextmenusenabled-property/llms-full.txt)
