PaintEventArgs

PaintEventArgs disposable

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

This class encapsulates the data used by the Control.Paint event, raised when the Control needs repainting .

You can retrieve the System.Drawing.Graphics surface on which to draw and the ClipRectangle that needs repainting (to optimize your paint function).

Information about repaint is also included under Control and ControlStyles .

 public class  PaintEventArgs  : EventArgs : IDisposable {  // Public Constructors  public  PaintEventArgs  (System.Drawing.Graphics  graphics  , System.Drawing.Rectangle  clipRect  );  // Public Instance Properties  public Rectangle  ClipRectangle  {get; }    public Graphics  Graphics  {get; }  // Public Instance Methods  public void  Dispose  ();  // implements IDisposable   // Protected Instance Methods  protected virtual void  Dispose  (bool  disposing  );    protected override void  Finalize  ();  // overrides object  } 

Hierarchy

System.Object System.EventArgs PaintEventArgs(System.IDisposable)

Passed To

Control.{InvokePaint() , InvokePaintBackground() , OnPaintBackground() , RaisePaintEvent()} , System.Windows.Forms.Design.ComponentTray.OnPaint() , System.Windows.Forms.Design.ControlDesigner.OnPaintAdornments() , PaintEventHandler.{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