[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SpreadView.GetViewportHeight

GetViewportHeight Method

GetViewportHeight(int, bool)

Gets the height of the specified viewport row for the active sheet.

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

Index of the viewport row

bool includeGrayArea
Returns
Type Description
int

The height of the specified viewport row.

GetViewportHeight(int, int)

Gets the height of the specified viewport row of the specified sheet.

Declaration
public int GetViewportHeight(int sheetIndex, int rowViewportIndex)
Public Function GetViewportHeight(sheetIndex As Integer, rowViewportIndex As Integer) As Integer
Parameters
Type Name Description
int sheetIndex

Index of the sheet

int rowViewportIndex

Index of the viewport row

Returns
Type Description
int

The height of the specified viewport row.

Exceptions
Type Condition
ArgumentOutOfRangeException

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