Occurs whenever a tab needs to be drawn and the
TabStyle Property is set to
UserDrawn, allowing the developer to handle the rendering of the tab.
Syntax
Event Data
The event handler receives an argument of type UserDrawnTabEventArgs containing data related to this event. The following UserDrawnTabEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Graphics | A handle to the graphics object responsible for drawing the tab. |
| Rect | A rectangle representing the area of the tab being painted in the control. |
| 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. |
| 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