FlexSheet for WPF | ComponentOne
C1.WPF.FlexGrid Namespace / GridPanel Class / AutoSizeColumn Method
Index of the column to resize.
Extra width to add to the column in pixels.
Whether to measure all cells or only the visible ones.

In This Topic
    AutoSizeColumn Method (GridPanel)
    In This Topic
    Resizes a column to fit its visible contents.
    Syntax
    'Declaration
     
    
    Public Function AutoSizeColumn( _
       ByVal col As Integer, _
       ByVal extra As Double, _
       ByVal allCells As Boolean _
    ) As Double
    public double AutoSizeColumn( 
       int col,
       double extra,
       bool allCells
    )

    Parameters

    col
    Index of the column to resize.
    extra
    Extra width to add to the column in pixels.
    allCells
    Whether to measure all cells or only the visible ones.

    Return Value

    The new column width in pixels.
    See Also