[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.MeasureCellSize

MeasureCellSize Method

MeasureCellSize(int, int)

Measures the specified cell when drawn.

Declaration
public Size MeasureCellSize(int row, int col)
Parameters
Type Name Description
int row

Specified cell row.

int col

Specified cell column.

Returns
Type Description
Size

Returns the size that the specified cell will occupy after drawing.

Remarks

Creates a new Graphics object on each call. To calculate the size of multiple cells, use MeasureCellSize(Graphics, int, int)

MeasureCellSize(Graphics, int, int)

Measures the specified cell when drawn.

Declaration
public Size MeasureCellSize(Graphics g, int row, int col)
Parameters
Type Name Description
Graphics g

Graphics.

int row

Specified cell row.

int col

Specified cell column.

Returns
Type Description
Size

Returns the size that the specified cell will occupy after drawing.