[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.C1FlexGrid.GetCellRectDisplay

GetCellRectDisplay Method

GetCellRectDisplay(int, int, bool, bool)

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

Declaration
protected override 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.

Overrides
Remarks

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