FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / MeasureCellSize Method / MeasureCellSize(Int32,Int32) Method
Specified cell row.
Specified cell column.

In This Topic
    MeasureCellSize(Int32,Int32) Method
    In This Topic
    Measures the specified cell when drawn.
    Syntax
    'Declaration
     
    
    Public Overloads Function MeasureCellSize( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As Size
    public Size MeasureCellSize( 
       int row,
       int col
    )

    Parameters

    row
    Specified cell row.
    col
    Specified cell column.

    Return Value

    Returns the size that the specified cell will occupy after drawing.
    Remarks
    Creates a new System.Drawing.Graphics object on each call. To calculate the size of multiple cells, use MeasureCellSize(Graphics,Int32,Int32)
    See Also