TX Text Control .NET Server

IsDateControlVisible 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 a value indicating wheather a date control is shown below the DateFormField so that the user can select a date.

Syntax

public bool IsDateControlVisible { get; set; }

Examples

The following example adds a prefilled delivery-date field to a form by using DateFormField.IsDateControlVisible.

DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);

dateFormField.IsDateControlVisible = true;
if (dateFormField.IsDateControlVisible)
{
    Console.WriteLine("Date Form Field: Is Date Control Visible is enabled.");
}