Xceed Grid for WinForms v4.3 Documentation
GridPaintEventArgs Constructor(Graphics,Point,Rectangle,Rectangle,Int32,Boolean)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridPaintEventArgs Class > GridPaintEventArgs Constructor : GridPaintEventArgs Constructor(Graphics,Point,Rectangle,Rectangle,Int32,Boolean)
The Graphics object used to paint.
The position of the grid's ClientRectangle in grid coordinates.
The client rectangle of the grid element. The rectangle represents the visible portion of the grid element and is in client coordinates. The X and Y coordinates are always 0,0.
The display rectangle of the grid element. The rectangle is in client coordinates and the X and Y coordinates can be negative if the grid is scrolled.
The width needed to draw the bottom border (if one is required) of the DetailGrid objects.
Indicates whether the element is being printed.
Initializes a new instance of the GridPaintEventArgs class.
Syntax
'Declaration
 
Public Function New( _
   ByVal graphics As Graphics, _
   ByVal clientPosition As Point, _
   ByVal clientRectangle As Rectangle, _
   ByVal displayRectangle As Rectangle, _
   ByVal bottomBorderWidth As Integer, _
   ByVal printing As Boolean _
)
'Usage
 
Dim graphics As Graphics
Dim clientPosition As Point
Dim clientRectangle As Rectangle
Dim displayRectangle As Rectangle
Dim bottomBorderWidth As Integer
Dim printing As Boolean
 
Dim instance As New GridPaintEventArgs(graphics, clientPosition, clientRectangle, displayRectangle, bottomBorderWidth, printing)
public GridPaintEventArgs( 
   Graphics graphics,
   Point clientPosition,
   Rectangle clientRectangle,
   Rectangle displayRectangle,
   int bottomBorderWidth,
   bool printing
)

Parameters

graphics
The Graphics object used to paint.
clientPosition
The position of the grid's ClientRectangle in grid coordinates.
clientRectangle
The client rectangle of the grid element. The rectangle represents the visible portion of the grid element and is in client coordinates. The X and Y coordinates are always 0,0.
displayRectangle
The display rectangle of the grid element. The rectangle is in client coordinates and the X and Y coordinates can be negative if the grid is scrolled.
bottomBorderWidth
The width needed to draw the bottom border (if one is required) of the DetailGrid objects.
printing
Indicates whether the element is being printed.
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

GridPaintEventArgs Class
GridPaintEventArgs Members
Overload List