TX Text Control .NET Server

Text Property

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

Description

Gets or sets the control's text.

Syntax

public string Text { get; set; }

Examples

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

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