Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / TextRow Class / GetFittedDisplayHeight Method
An AutoHeightMode value indicating in regards to what factors the fitted height of the row will be calculated. This parameter is not taken into consideration for a TextRow; the fitted height of a TextRow is always the height of one line of text.
The System.Drawing.Graphics object used to paint the row.
true if the row is being printed; false otherwise.


In This Topic
    GetFittedDisplayHeight Method (TextRow)
    In This Topic
    Retrieves the fitted height of the row in pixels.
    Syntax
    'Declaration
     
    Protected Friend Overrides Function GetFittedDisplayHeight( _
       ByVal mode As AutoHeightMode, _
       ByVal graphics As Graphics, _
       ByVal printing As Boolean _
    ) As Integer
    'Usage
     
    Dim instance As TextRow
    Dim mode As AutoHeightMode
    Dim graphics As Graphics
    Dim printing As Boolean
    Dim value As Integer
     
    value = instance.GetFittedDisplayHeight(mode, graphics, printing)
    protected internal override int GetFittedDisplayHeight( 
       AutoHeightMode mode,
       Graphics graphics,
       bool printing
    )

    Parameters

    mode
    An AutoHeightMode value indicating in regards to what factors the fitted height of the row will be calculated. This parameter is not taken into consideration for a TextRow; the fitted height of a TextRow is always the height of one line of text.
    graphics
    The System.Drawing.Graphics object used to paint the row.
    printing
    true if the row is being printed; false otherwise.

    Return Value

    The fitted height of the row in pixels.
    Remarks

    The fitted height of the row is calculated in regards to the current width of the columns, taking into consideration the WordWrap property.

    If the WordWrap property is set to true, then the fitted height of the row will represent the height needed to display all data in the row appropriately. If the WordWrap property is set to false, then the fitted height of the row will represent the height needed to display only one line of data in the row.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also