dbicTabs Send comments on this topic.
UserDrawnTab Event
See Also 
dbicTabs Assembly > Dbi.WinControl.Tabs Namespace > dbiTabs Class : UserDrawnTab Event

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

Visual Basic (Declaration) 
Public Event UserDrawnTab As dbiTabs.EventUserDrawnTabHandler
C# 
public event dbiTabs.EventUserDrawnTabHandler UserDrawnTab

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.

PropertyDescription
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