EmptyWidth Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the horizontal extension, in twips, of the DateFormField, when a date is not set.
Syntax
public int EmptyWidth { get; set; }Public Property EmptyWidth As IntegerExamples
The following example adds a prefilled delivery-date field to a form by using DateFormField.EmptyWidth.
DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);
dateFormField.EmptyWidth = 100;
Console.WriteLine($"Empty Width used by Date Form Field: {dateFormField.EmptyWidth}");Dim dateFormField As New DateFormField(Date.Today.AddDays(14), 0) With { .Name = "DeliveryDate" }
textControl.FormFields.Add(dateFormField)
dateFormField.EmptyWidth = 100
Console.WriteLine($"Empty Width used by Date Form Field: {dateFormField.EmptyWidth}")