TX Text Control .NET Server

DrawDateControl Event

Event|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Occurs when a date control for a DateFormField must be drawn. The event handler receives an argument of type DrawDateControlEventArgs containing data related to this event.

Syntax

public event DrawDateControlEventHandler DrawDateControl;

Examples

The following example records useful context when draw date control occurs.

textViewGenerator.DrawDateControl += (sender, e) =>
{
    Console.WriteLine($"Draw Date Control at {DateTime.Now:u}");
};