# IfField.Text Property

> Gets and sets the displayed text of the field.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.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 > IfField.Text Property
- **404 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/iffield/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/iffield/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/iffield/text-property/llms-full.txt

---

### Description

Gets and sets the displayed text of the field.

### Syntax

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

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

### Examples

The following example uses `IfField.Text` to replace the if field's displayed content. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [IfField.Operator Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/iffield/operator-property/llms-full.txt)
- **Next:** [IfField.TrueText Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/iffield/truetext-property/llms-full.txt)
