TX Text Control .NET Server

Text Property

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

Description

Gets and sets the displayed text of the field.

Syntax

public string Text { get; set; }

Examples

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

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