StatusBarDrawItemEventArgs

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()}



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net