[]
        
(Showing Draft Content)

FarPoint.Win.Spread.FpSpread.GetViewportPreferredWidth

GetViewportPreferredWidth Method

GetViewportPreferredWidth(int)

Gets the maximum width of the specified viewport column.

Declaration
public int GetViewportPreferredWidth(int columnViewportIndex)
Public Function GetViewportPreferredWidth(columnViewportIndex As Integer) As Integer
Parameters
Type Name Description
int columnViewportIndex

Column index of viewport

Returns
Type Description
int

GetViewportPreferredWidth(int, int)

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

Declaration
public int GetViewportPreferredWidth(int sheetIndex, int columnViewportIndex)
Public Function GetViewportPreferredWidth(sheetIndex As Integer, columnViewportIndex As Integer) As Integer
Parameters
Type Name Description
int sheetIndex

Sheet index

int columnViewportIndex

Column index of viewport

Returns
Type Description
int
Exceptions
Type Condition
ArgumentOutOfRangeException

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