Fires before any symbol segment is rendered in the display of the control, allowing the developer the chance to custom draw the current symbol segment.
Syntax
Event Data
The event handler receives an argument of type UserDrawnSymbolSegmentEventArgs containing data related to this event. The following UserDrawnSymbolSegmentEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Character | The character from the control's Text property that contains the symbol segment to be drawn. |
| Graphics | A handle to the Graphics object responsible for the drawing. |
| PaintSymbolSegment | 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 symbol segment being drawn. |
| SymbolSegment | The symbol segment being drawn. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also