Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / ColumnManagerCell Class / GetFittedDisplayWidth Method
This parameter is reserved for future use.
The System.Drawing.Graphics object used to paint the cell.
true if the cell is being printed; false otherwise.


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

    Parameters

    mode
    This parameter is reserved for future use.
    graphics
    The System.Drawing.Graphics object used to paint the cell.
    printing
    true if the cell is being printed; false otherwise.

    Return Value

    A value containing the fitted width of the cell, including its Borders, in pixels.
    Remarks

    The fitted width of the cell represents the width necessary to display the cell's data on one line, regardless of the value of the WordWrap property.

    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