TX Text Control .NET Server

EmptyWidth Property

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

Description

Gets or sets the horizontal extension, in twips, of the SelectionFormField, when there is no selected item.

Syntax

public int EmptyWidth { get; set; }

Examples

The following example adds a country selector to a fillable form by using SelectionFormField.EmptyWidth.

SelectionFormField selectionFormField = new(new[] { "Germany", "United Kingdom", "United States" }, 0) { Name = "Country" };
textControl.FormFields.Add(selectionFormField);

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