TX Text Control .NET Server

Type 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 or sets the type of the field.

Syntax

public FormText.FormTextBoxType Type { get; set; }

Members

ValueDescription
RegularTextRegular text is allowed.
NumberOnly numeric values are allowed.
DateA valid date format is allowed.
CurrentDateThe current date will be inserted.
CurrentTimeThe current time will be inserted.
CalculationA calculation is allowed.

Examples

The following example uses FormText.Type to configure type as part of the form text workflow. The configured value is checked before the workflow continues.

formText.Type = TXTextControl.DocumentServer.Fields.FormText.FormTextBoxType.RegularText;
Console.WriteLine($"Type used by Form Text: {formText.Type}");

Limitations

This property is not used by the DocumentServer.Web.DocumentViewer component.