[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SpreadView.GetViewportWidth

GetViewportWidth Method

GetViewportWidth(int, bool)

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

Declaration
public int GetViewportWidth(int columnViewportIndex, bool includeGrayArea = true)
Public Function GetViewportWidth(columnViewportIndex As Integer, Optional includeGrayArea As Boolean = True) As Integer
Parameters
Type Name Description
int columnViewportIndex

Index of the viewport column

bool includeGrayArea
Returns
Type Description
int

GetViewportWidth(int, int)

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

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

Index of the sheet

int columnViewportIndex

Index of the viewport column

Returns
Type Description
int
Exceptions
Type Condition
ArgumentOutOfRangeException

Specified sheet index is not valid; must be between zero and the number of sheets.