EmptyWidth Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property EmptyWidth As IntegerExamples
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}");Dim selectionFormField As New SelectionFormField(New String() { "Germany", "United Kingdom", "United States" }, 0) With { .Name = "Country" }
textControl.FormFields.Add(selectionFormField)
selectionFormField.EmptyWidth = 100
Console.WriteLine($"Empty Width used by Selection Form Field: {selectionFormField.EmptyWidth}")