# ServerTextControl Constructor

> Initializes a new instance of the ServerTextControl class. After initialization the Create method must be called to enable further resources.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > ServerTextControl Constructor
- **401 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/constructor/llms-full.txt

---

### Description

Initializes a new instance of the ServerTextControl class. After initialization the [Create](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/create-method/llms-full.txt) method must be called to enable further resources.

### Syntax

```csharp
public ServerTextControl();
```

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

### Examples

The following example initializes a server-side text control, creates a document, and exports it to PDF.

```csharp
using ServerTextControl textControl = new();
textControl.Create();
textControl.Text = "Quarterly results";
textControl.Save("quarterly-results.pdf", StreamType.AdobePDF);
```

```vbnet
Using textControl As New ServerTextControl()
    textControl.Create()
    textControl.Text = "Quarterly results"
    textControl.Save("quarterly-results.pdf", StreamType.AdobePDF)
End Using
```

---

## Nearby

- **Previous:** [ServerTextControl.Comments Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/comments-property/llms-full.txt)
- **Next:** [ServerTextControl.ContentsReset Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/contentsreset-event/llms-full.txt)
