Date Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the DateFormField's date.
Syntax
public DateTime? Date { get; set; }Public Property [Date] As DateTime?Examples
The following example adds a prefilled delivery-date field to a form by using DateFormField.Date.
DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);
dateFormField.Date = DateTime.Today;
if (dateFormField.Date != null)
{
Console.WriteLine("Date Form Field: Date is available.");
}Dim dateFormField As New DateFormField(Date.Today.AddDays(14), 0) With { .Name = "DeliveryDate" }
textControl.FormFields.Add(dateFormField)
dateFormField.Date = Date.Today
If dateFormField.Date IsNot Nothing Then
Console.WriteLine("Date Form Field: Date is available.")
End IfRemarks
The property is null when the DateFormField is empty.