Occurs just before the text for a tab is rendered, allowing the developer to override and handle the text rendering themselves
Syntax
Event Data
The event handler receives an argument of type UserDrawnTabTextEventArgs containing data related to this event. The following UserDrawnTabTextEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Graphics | A handle to the graphics object responsible for drawing the text of the tab. |
| PaintText | Detemines if the internal routines of the control will handle the painting of the text. |
| Selected | Determines if this is the currently selected tab. |
| TabIndex | Returns the 0-based index of the tab being painted. |
| TabPage | Returns the TabPage currently being painted. |
| TabRect | A rectangle representing the area of the control where the tab was painted. |
| TextRect | A rectangle representing the area calculated for displaying the text in the current tab. |
| UnderMouse | Determines if the tab being painted is currently under the mouse cursor. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also