# TextControl Constructor

> Initializes a new instance of the TextControl class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **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)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControl Constructor
- **765 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/constructor/llms-full.txt

---

### Description

Initializes a new instance of the TextControl class.

### Syntax

#### TextControl()

Initializes a new instance of the TextControl class.

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

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

#### TextControl(TextControlSettings)

Initializes a new instance of the TextControl class using settings from a given [TextControlSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt) object.

```csharp
public TextControl(TextControlSettings settings);
```

```vbnet
Public Sub New(settings As TextControlSettings)
```

| Parameter | Description |
|---|---|
| settings | A [TextControlSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt) object containing [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/llms-full.txt) extension settings. |

#### TextControl(Action<TextControlSettings>)

Initializes a new instance of the TextControl class using settings from a delegate method that accepts [TextControlSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt) as a parameter.

```csharp
public TextControl(Action<TextControlSettings> method);
```

```vbnet
Public Sub New(method As Action(Of TextControlSettings))
```

| Parameter | Description |
|---|---|
| method | A delegate method that accepts [TextControlSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt) as a parameter. |

### 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 Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/llms-full.txt)
- **Next:** [TextControl.LoadDataFromJson Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddatafromjson-method/llms-full.txt)
