TX Text Control .NET for Windows Forms

Text Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets and sets the text of the field.

Syntax

public string Text { get; set; }

Examples

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

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