DekGenius.com
[ Team LiB ] Previous Section Next Section

StatusBarDrawItemEventArgs

System.Windows.Forms (system.windows.forms.dll)class

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; }
}

Hierarchy

System.Object System.EventArgs DrawItemEventArgs StatusBarDrawItemEventArgs

Passed To

StatusBar.OnDrawItem(), StatusBarDrawItemEventHandler.{BeginInvoke(), Invoke()}

    [ Team LiB ] Previous Section Next Section