Occurs before the Display Area is rendered, allowing the developer to handle the drawing themselves.
Syntax
Event Data
The event handler receives an argument of type UserDrawnDisplayAreaEventArgs containing data related to this event. The following UserDrawnDisplayAreaEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Graphics | A handle to the graphics object used to draw the display area. |
| PaintDisplayArea | Determines if the internal routines of the control should draw the display area. When the PaintDisplayArea property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the display area. |
| Rect | A rectangle representing the dimensions of the Display Area in the control. |
| Text | Determines the current text of the Display area. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also