Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridPaintEventArgs Class / GridPaintEventArgs Constructor / GridPaintEventArgs Constructor(Graphics,Point,Rectangle,Rectangle,StatelessVisualGridElementStyle,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.
A StatelessVisualGridElementStyle object representing the stateless style of the VisualGridElement.
The width needed to draw the bottom border (if one is required) of the DetailGrid objects.
Indicates whether the element is being printed.


In This Topic
    GridPaintEventArgs Constructor(Graphics,Point,Rectangle,Rectangle,StatelessVisualGridElementStyle,Int32,Boolean)
    In This Topic
    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 displayVisualStyle As StatelessVisualGridElementStyle, _
       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 displayVisualStyle As StatelessVisualGridElementStyle
    Dim bottomBorderWidth As Integer
    Dim printing As Boolean
     
    Dim instance As New GridPaintEventArgs(graphics, clientPosition, clientRectangle, displayRectangle, displayVisualStyle, bottomBorderWidth, 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.
    displayVisualStyle
    A StatelessVisualGridElementStyle object representing the stateless style of the VisualGridElement.
    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