TX Text Control .NET for Windows Forms

EmptyWidth Property

Property|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

Gets or sets the horizontal extension, in twips, of the form field, when it is empty.

Syntax

public int EmptyWidth { get; set; }

Examples

The following example adds a customer-name input field to a form by using TextFormField.EmptyWidth.

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

textFormField.EmptyWidth = 100;
Console.WriteLine($"Empty Width used by Text Form Field: {textFormField.EmptyWidth}");