Fires before any character is rendered in the display of the control, allowing the developer the chance to custom draw the entire character.
Syntax
Event Data
The event handler receives an argument of type UserDrawnCharacterEventArgs containing data related to this event. The following UserDrawnCharacterEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Character | The character from the control's Text property. |
| Graphics | A handle to the Graphics object responsible for the drawing. |
| IsValid | Determines if the current character is a valid one the control can render in its display. |
| PaintCharacter | Indicates to the control if the default painting routines should be used or not. |
| Position | The index of the character within the control's Text property. |
| Rect | The rectangle representing the size and location of the area for character in the control's display. |
Remarks
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also