[]
        
(Showing Draft Content)

FarPoint.Win.Spread.FpSpread.SetViewportPreferredWidth

SetViewportPreferredWidth Method

SetViewportPreferredWidth(int, int)

Sets the maximum width of the specified viewport column for the active sheet.

Declaration
public void SetViewportPreferredWidth(int columnViewportIndex, int value)
Public Sub SetViewportPreferredWidth(columnViewportIndex As Integer, value As Integer)
Parameters
Type Name Description
int columnViewportIndex

Column index of viewport

int value

Width of the viewport in pixels

SetViewportPreferredWidth(int, int, int)

Sets the maximum width of the specified viewport column for the specified sheet.

Declaration
public void SetViewportPreferredWidth(int sheetIndex, int columnViewportIndex, int value)
Public Sub SetViewportPreferredWidth(sheetIndex As Integer, columnViewportIndex As Integer, value As Integer)
Parameters
Type Name Description
int sheetIndex

Sheet index

int columnViewportIndex

Column index of viewport

int value

Width of the viewport in pixels

Exceptions
Type Condition
ArgumentOutOfRangeException

Specified sheet index is out of range; must be between 0 and the total number of sheets