Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / SetViewportPreferredWidth Method / SetViewportPreferredWidth(Int32,Int32,Int32) Method
Sheet index
Column index of viewport
Width of the viewport in pixels


In This Topic
    SetViewportPreferredWidth(Int32,Int32,Int32) Method
    In This Topic
    Sets the maximum width of the specified 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 FpSpread
    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
    Column index of viewport
    value
    Width of the viewport in pixels
    Exceptions
    ExceptionDescription
    Specified sheet index is out of range; must be between 0 and the total number of sheets
    See Also