[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.GetCellRect

GetCellRect Method

GetCellRect(int, int, bool)

Gets a Rectangle object with the coordinates of the cell within the control.

Declaration
public Rectangle GetCellRect(int row, int col, bool show)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

bool show

Whether to scroll the cell into view before calculating the rectangle.

Returns
Type Description
Rectangle

A 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.

GetCellRect(int, int)

Gets a Rectangle object with the coordinates of the cell within the control.

Declaration
public Rectangle GetCellRect(int row, int col)
Parameters
Type Name Description
int row

Row index.

int col

Column index.

Returns
Type Description
Rectangle
Remarks

This property is useful if you need to implement custom editors or other elements that need to be positioned over cells.

This method does not ensure the cell is visible.