TX Text Control .NET Server

DrawDateControlEventArgs Class

Class|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Server.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Server.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll
Inherits
  1. EventArgs
  2. DrawDateControlEventArgs

Description

The DrawDateControlEventArgs class contains information necessary to draw a date control so that an end-user can select a date for a DateFormField. This class is used with the ServerVisualization.TextViewGenerator.DrawDateControl event.

Syntax

public class DrawDateControlEventArgs : EventArgs

Examples

The following example includes the location value from a Draw Date Control Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Location: {drawDateControlEventArgs.Location}");
Console.WriteLine("Draw Date Control Event Args is ready for use.");

Members

Properties

PropertyDescription
DateFormFieldGets the DateFormField for which the date control is displayed. It can be used to get or to set the field's date.
LocationGets the location where to place the date control, in pixels.