# RichTextContentControl.Text Property

> Gets or sets the text of the content control field.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl.DocumentServer.Fields > RichTextContentControl.Text Property
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/text-property/llms-full.txt

---

### Description

Gets or sets the text of the content control field.

### Syntax

```csharp
public string Text { get; set; }
```

```vbnet
Public Property Text As String
```

### Examples

The following example uses `RichTextContentControl.Text` to replace the rich text content control's displayed content. The configured value is checked before the workflow continues.

```csharp
richTextContentControl.Text = "Quarterly results";
if (!string.IsNullOrWhiteSpace(richTextContentControl.Text))
{
    Console.WriteLine($"Text: {richTextContentControl.Text}");
}
```

```vbnet
richTextContentControl.Text = "Quarterly results"
If Not String.IsNullOrWhiteSpace(richTextContentControl.Text) Then
    Console.WriteLine($"Text: {richTextContentControl.Text}")
End If
```

---

## Nearby

- **Previous:** [RichTextContentControl Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/richtextcontentcontrol/constructor/llms-full.txt)
- **Next:** [TXTextControl.DocumentServer.Json namespace](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/llms-full.txt)
