# DrawDateControlEventArgs Class

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > DrawDateControlEventArgs Class
- **531 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/llms-full.txt

---

### Description

The DrawDateControlEventArgs class contains information necessary to draw a date control so that an end-user can select a date for a [DateFormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/llms-full.txt). This class is used with the [ServerVisualization.TextViewGenerator.DrawDateControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/drawdatecontrol-event/llms-full.txt) event.

### Syntax

```csharp
public class DrawDateControlEventArgs : EventArgs
```

```vbnet
Public Class DrawDateControlEventArgs
    Inherits 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.

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

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

---

## In This Section

- [DrawDateControlEventArgs.DateFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/dateformfield-property/llms-full.txt): Gets the DateFormField for which the date control is displayed. It can be used to get or to set the field's date.
- [DrawDateControlEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/location-property/llms-full.txt): Gets the location where to place the date control, in pixels.

---

## Nearby

- **Previous:** [DrawComboboxEventArgs.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/size-property/llms-full.txt)
- **Next:** [DrawDateControlEventArgs.DateFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/dateformfield-property/llms-full.txt)
