ComponentOne FlexGrid for WinForms
GetCellRect(Int32,Int32,Boolean) Method

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > GetCellRect Method : GetCellRect(Int32,Int32,Boolean) Method
Row index.
Column index.
Whether to scroll the cell into view before calculating the rectangle.
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

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List