ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / DrawCell Method
A System.Windows.Forms.PaintEventArgs that contains a System.Drawing.Graphics object where the cell will be drawn.
Index of the cell's row.
Index of the cell's column.

In This Topic
    DrawCell Method (C1FlexGrid)
    In This Topic
    Draws a grid cell.
    Syntax
    'Declaration
     
    Protected Overrides Function DrawCell( _
       ByVal e As PaintEventArgs, _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As Integer
    protected override int DrawCell( 
       PaintEventArgs e,
       int row,
       int col
    )

    Parameters

    e
    A System.Windows.Forms.PaintEventArgs that contains a System.Drawing.Graphics object where the cell will be drawn.
    row
    Index of the cell's row.
    col
    Index of the cell's column.

    Return Value

    The index of the last column painted (may be greater than col if columns are merged).
    Remarks
    This method is for internal use. It allows inherited classes to customize the grid appearance.
    See Also