BCGControlBar Library for .NET
DrawItem Event




Occurs when the ownerdraw pane is redrawn.
Syntax
'Declaration
 
Public Event DrawItem As StatusBarDrawItemEventHandler
'Usage
 
Dim instance As StatusBarControl
Dim handler As StatusBarDrawItemEventHandler
 
AddHandler instance.DrawItem, handler
public event StatusBarDrawItemEventHandler DrawItem
public: __event StatusBarDrawItemEventHandler* DrawItem
public:
event StatusBarDrawItemEventHandler^ DrawItem
Event Data

The event handler receives an argument of type StatusBarDrawItemEventArgs containing data related to this event. The following StatusBarDrawItemEventArgs properties provide information specific to this event.

PropertyDescription
BackColor (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the background color of the item that is being drawn.
Bounds (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the rectangle that represents the bounds of the item that is being drawn.
Font (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the font that is assigned to the item being drawn.
ForeColor (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the foreground color of the of the item being drawn.
Graphics (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the graphics surface to draw the item on.
Index (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the index value of the item that is being drawn.
Panel Gets the System.Windows.Forms.StatusBarPanel to draw.
State (Inherited from System.Windows.Forms.DrawItemEventArgs)Gets the state of the item being drawn.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StatusBarControl Class
StatusBarControl Members

Send Feedback