Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Viewers Namespace / CellViewerPaintEventArgs Class / CellViewerPaintEventArgs Constructor / CellViewerPaintEventArgs Constructor(Cell,Graphics,Point,Rectangle,Rectangle,Int32,Boolean)
The Xceed.Grid.Cell for which the viewer provides custom painting.
The System.Drawing.Graphics object used to paint.
The Xceed.Grid.VisualGridElement.ClientPosition of the cell.
The Xceed.Grid.VisualGridElement.ClientRectangle of the cell.
The Xceed.Grid.VisualGridElement.DisplayRectangle of the cell.
The width, in pixels, of the cell's bottom border.
true if the viewer is being printed; false otherwise.


In This Topic
    CellViewerPaintEventArgs Constructor(Cell,Graphics,Point,Rectangle,Rectangle,Int32,Boolean)
    In This Topic
    Initializes a new instance of the CellViewerPaintEventArgs class specifying the cell for which the viewer provides custom painting, as well as the information necessary to paint.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal cell As Cell, _
       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 cell As Cell
    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 CellViewerPaintEventArgs(cell, graphics, clientPosition, clientRectangle, displayRectangle, bottomBorderWidth, printing)
    public CellViewerPaintEventArgs( 
       Cell cell,
       Graphics graphics,
       Point clientPosition,
       Rectangle clientRectangle,
       Rectangle displayRectangle,
       int bottomBorderWidth,
       bool printing
    )

    Parameters

    cell
    The Xceed.Grid.Cell for which the viewer provides custom painting.
    graphics
    The System.Drawing.Graphics object used to paint.
    clientPosition
    The Xceed.Grid.VisualGridElement.ClientPosition of the cell.
    clientRectangle
    The Xceed.Grid.VisualGridElement.ClientRectangle of the cell.
    displayRectangle
    The Xceed.Grid.VisualGridElement.DisplayRectangle of the cell.
    bottomBorderWidth
    The width, in pixels, of the cell's bottom border.
    printing
    true if the viewer is being printed; false otherwise.
    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