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


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Viewers Namespace > CellViewerPaintEventArgs Class > CellViewerPaintEventArgs Constructor : CellViewerPaintEventArgs Constructor(Cell,Graphics,Point,Rectangle,Rectangle,StatelessVisualGridElementStyle,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 Xceed.Grid.StatelessVisualGridElementStyle of the cell.
The width, in pixels, of the cell's bottom border.
true if the viewer is being printed; false otherwise.
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 displayVisualStyle As StatelessVisualGridElementStyle, _

   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 displayVisualStyle As StatelessVisualGridElementStyle

Dim bottomBorderWidth As Integer

Dim printing As Boolean

 

Dim instance As New CellViewerPaintEventArgs(cell, graphics, clientPosition, clientRectangle, displayRectangle, displayVisualStyle, bottomBorderWidth, 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.
displayVisualStyle
The Xceed.Grid.StatelessVisualGridElementStyle 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

Reference

CellViewerPaintEventArgs Class
CellViewerPaintEventArgs Members
Overload List