[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.C1FlexGridBase.GetCellRectDisplay

GetCellRectDisplay Method

GetCellRectDisplay(int, int, bool, bool)

Gets a rectangle representing the coordinates of a cell, row, or column.

Declaration
protected virtual Rectangle GetCellRectDisplay(int row, int col, bool clipHorz, bool clipVert)
Parameters
Type Name Description
int row

Row index (or -1 to get column bounds).

int col

Column index (or -1 to get row bounds).

bool clipHorz

Whether the rectangle should be horizontally clipped to the grid's client area.

bool clipVert

Whether the rectangle should be vertically clipped to the grid's client area.

Returns
Type Description
Rectangle

A Rectangle containing the display area for the row, column, or cell, in client coordinates and accounting for scroll position.

Remarks

This method is for internal use. It allows inherited classes to customize the way cell geometry is calculated.

GetCellRectDisplay(int, int)

Gets a rectangle representing the coordinates of a cell, row, or column.

Declaration
protected Rectangle GetCellRectDisplay(int row, int col)
Parameters
Type Name Description
int row

Row index (or -1 to get column bounds).

int col

Column index (or -1 to get row bounds).

Returns
Type Description
Rectangle

A Rectangle containing the display area for the row, column, or cell, in client coordinates and accounting for scroll position.

Remarks

This method is for internal use. It allows inherited classes to customize the way cell geometry is calculated.