# RichTextContentControl Constructor

> Initializes a new instance of the RichTextContentControl class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Fields > RichTextContentControl Constructor
- **519 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/constructor/llms-full.txt

---

### Description

Initializes a new instance of the RichTextContentControl class.

### Syntax

#### RichTextContentControl()

Initializes complete new instance of the RichTextContentControl class without a connection to an existing ApplicationField.

```csharp
public RichTextContentControl();
```

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

#### RichTextContentControl(ApplicationField)

Initializes a new instance of the RichTextContentControl class with a connection to an existing ApplicationField.

```csharp
public RichTextContentControl(ApplicationField appField);
```

```vbnet
Public Sub New(appField As ApplicationField)
```

| Parameter | Description |
|---|---|
| appField | Specifies the ApplicationField to be adapted. |

### Examples

The following example creates a Rich Text Content Control instance and configures its text setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Fields.RichTextContentControl richTextContentControl = new();
richTextContentControl.Text = "Quarterly results";
```

```vbnet
Dim richTextContentControl As New TXTextControl.DocumentServer.Fields.RichTextContentControl()
richTextContentControl.Text = "Quarterly results"
```

---

## Nearby

- **Previous:** [RichTextContentControl Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/llms-full.txt)
- **Next:** [RichTextContentControl.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/text-property/llms-full.txt)
