TX Text Control .NET Server

MaxLength 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 maximum length of the field.

Syntax

public int MaxLength { get; set; }

Examples

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

formText.MaxLength = 1;
Console.WriteLine($"Max Length used by Form Text: {formText.MaxLength}");