FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGrid Class / GetCellRect Method / GetCellRect(Int32,Int32,Boolean) Method
Row index.
Column index.
Whether to scroll the cell into view before calculating the rectangle.

In This Topic
    GetCellRect(Int32,Int32,Boolean) Method
    In This Topic
    Gets a System.Drawing.Rectangle object with the coordinates of the cell within the control.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetCellRect( _
       ByVal row As Integer, _
       ByVal col As Integer, _
       ByVal show As Boolean _
    ) As Rectangle
    public Rectangle GetCellRect( 
       int row,
       int col,
       bool show
    )

    Parameters

    row
    Row index.
    col
    Column index.
    show
    Whether to scroll the cell into view before calculating the rectangle.

    Return Value

    A System.Drawing.Rectangle object with the coordinates of the cell, in pixels and relative to the control's client area.
    Remarks
    This property is useful if you need to implement custom editors or other elements that need to be positioned over cells.
    See Also