TX Text Control .NET for Windows Forms

TextFormField Constructor

Constructor|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the TextFormField class.

Syntax

public TextFormField(int emptyWidth);

Parameters

ParameterDescription
emptyWidth

Specifies the horizontal extension, in twips, of the form field, when it is empty. When this parameter is set to 0, a default value is used.

Examples

The following example adds a customer-name input field to a form.

TextFormField textFormField = new(20) { Name = "CustomerName" };
textControl.FormFields.Add(textFormField);