FlexSheet for WPF | ComponentOne
C1.WPF.FlexGrid Namespace / C1FlexGrid Class / AutoSizeColumns Method / AutoSizeColumns(Int32,Int32,Double) Method
Index of the first column to resize.
Index of the last column to resize.
Extra width to add to the column, in pixels.

In This Topic
    AutoSizeColumns(Int32,Int32,Double) Method
    In This Topic
    Resizes a column range to fit their visible content.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AutoSizeColumns( _
       ByVal startCol As Integer, _
       ByVal endCol As Integer, _
       ByVal extra As Double _
    ) 
    public void AutoSizeColumns( 
       int startCol,
       int endCol,
       double extra
    )

    Parameters

    startCol
    Index of the first column to resize.
    endCol
    Index of the last column to resize.
    extra
    Extra width to add to the column, in pixels.
    See Also