# PlainTextContentControl.Text Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > PlainTextContentControl.Text Property
- **429 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/plaintextcontentcontrol/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/plaintextcontentcontrol/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/plaintextcontentcontrol/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 `PlainTextContentControl.Text` to replace the plain text content control's displayed content. The configured value is checked before the workflow continues.

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

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

---

## Nearby

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