FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / CalculateCellHeight Method
Graphics instance.
Specified cell row index.
Specified cell column index.
Skip hidden cells.
Skip merged cells.
Measure only one character of a cell's text value.
Distance of measured one character to the right border of the cell.

In This Topic
    CalculateCellHeight Method (C1FlexGridBase)
    In This Topic
    Calculates the height of the specified grid cell.
    Syntax
    'Declaration
     
    
    Protected Overridable Function CalculateCellHeight( _
       ByVal g As Graphics, _
       ByVal row As Integer, _
       ByVal col As Integer, _
       ByVal skipHidden As Boolean, _
       ByVal skipMerged As Boolean, _
       ByVal measureSymbol As Boolean, _
       ByRef symbolRight As Integer _
    ) As Integer
    protected virtual int CalculateCellHeight( 
       Graphics g,
       int row,
       int col,
       bool skipHidden,
       bool skipMerged,
       bool measureSymbol,
       out int symbolRight
    )

    Parameters

    g
    Graphics instance.
    row
    Specified cell row index.
    col
    Specified cell column index.
    skipHidden
    Skip hidden cells.
    skipMerged
    Skip merged cells.
    measureSymbol
    Measure only one character of a cell's text value.
    symbolRight
    Distance of measured one character to the right border of the cell.

    Return Value

    Height of the cell.
    See Also