March 2003
Intermediate to advanced
896 pages
32h 35m
English
StatusBarDrawItemEventArgs
This class encapsulates the data for the
StatusBar.DrawItem event. It provides the actual
Panel to be drawn and its Index
in the StatusBar.Panels collection along with the
BackColor, ForeColor, and
Font of that object.
You can also get a System.Drawing.Graphics surface
on which to paint and the Bounds of the panel on
that surface.
public class StatusBarDrawItemEventArgs : DrawItemEventArgs { // Public Constructors public StatusBarDrawItemEventArgs(System.Drawing.Graphics g, System.Drawing.Font font, System.Drawing.Rectangle r, int itemId, DrawItemState itemState, StatusBarPanel panel); // Public Instance Properties public StatusBarPanel Panel{get; } }
System.Object
→ System.EventArgs → DrawItemEventArgs → StatusBarDrawItemEventArgs
StatusBar.OnDrawItem(),
StatusBarDrawItemEventHandler.{BeginInvoke(),
Invoke()}
Read now
Unlock full access