Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / GetPreferredColumnWidth Method / GetPreferredColumnWidth(Int32,PreferredSizeColumnOptions) Method
Column index
Options when getting the preferred width


In This Topic
    GetPreferredColumnWidth(Int32,PreferredSizeColumnOptions) Method
    In This Topic
    Gets the width of the widest cell (based on text content) in the specified column on this sheet.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetPreferredColumnWidth( _
       ByVal column As Integer, _
       ByVal flags As PreferredSizeColumnOptions _
    ) As Single
    'Usage
     
    
    Dim instance As SheetView
    Dim column As Integer
    Dim flags As PreferredSizeColumnOptions
    Dim value As Single
     
    value = instance.GetPreferredColumnWidth(column, flags)
    public float GetPreferredColumnWidth( 
       int column,
       PreferredSizeColumnOptions flags
    )

    Parameters

    column
    Column index
    flags
    Options when getting the preferred width
    Remarks
    A cell has wrapped contents (text that wraps to multiple lines) when the renderer in the composite style for the cell implements IWordWrapSupport interface and its WordWrap property returns true.
    See Also