TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / C1TreeView Class / GetColumnPreferredWidth Method / GetColumnPreferredWidth(C1TreeColumn) Method
C1TreeColumn

In This Topic
    GetColumnPreferredWidth(C1TreeColumn) Method
    In This Topic
    Calculates the minimum width of the C1TreeColumn that will fit the currently displayed content.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetColumnPreferredWidth( _
       ByVal treeColumn As C1TreeColumn _
    ) As Integer
    public int GetColumnPreferredWidth( 
       C1TreeColumn treeColumn
    )

    Parameters

    treeColumn
    C1TreeColumn

    Return Value

    The minimum width of the given column that will fit the currently displayed content.
    Exceptions
    ExceptionDescription
    Thrown if given treecolumn is null.
    Thrown if given treecolumn doesn't belongs to the Columns collection.
    See Also