TX Text Control .NET for WPF

EmptyWidth Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.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 DateFormField, when a date is not set.

Syntax

public int EmptyWidth { get; set; }

Examples

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}");