Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / SetViewportPreferredWidth Method / SetViewportPreferredWidth(Int32,Int32,Int32) Method
Sheet index
Viewport column index
Width in pixels


In This Topic
    SetViewportPreferredWidth(Int32,Int32,Int32) Method
    In This Topic
    Sets the maximum width for the viewport column for the specified sheet.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetViewportPreferredWidth( _
       ByVal sheetIndex As Integer, _
       ByVal columnViewportIndex As Integer, _
       ByVal value As Integer _
    ) 
    'Usage
     
    
    Dim instance As SpreadView
    Dim sheetIndex As Integer
    Dim columnViewportIndex As Integer
    Dim value As Integer
     
    instance.SetViewportPreferredWidth(sheetIndex, columnViewportIndex, value)
    public void SetViewportPreferredWidth( 
       int sheetIndex,
       int columnViewportIndex,
       int value
    )

    Parameters

    sheetIndex
    Sheet index
    columnViewportIndex
    Viewport column index
    value
    Width in pixels
    Exceptions
    ExceptionDescription
    Specified sheet index is not valid; must be between 0 and total number of sheets.
    See Also