Spread.Sheets Documentation
getViewportBottomRow Method
GC.Spread.Sheets Namespace > Worksheet type : getViewportBottomRow Method
The index of the viewport.
Gets the index of the bottom row in the viewport.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: number
value = instance.getViewportBottomRow(rowViewportIndex);
function getViewportBottomRow( 
   rowViewportIndex : number
) : number;

Parameters

rowViewportIndex
The index of the viewport.

Return Value

The index of the bottom row in the viewport.
Example
This example returns the indices for the bottom and top rows and left and right columns in the current sheet view.
var brow = activeSheet.getViewportBottomRow(1);
var lcol = activeSheet.getViewportLeftColumn(1);
var rcol = activeSheet.getViewportRightColumn(1);
var trow = activeSheet.getViewportTopRow(1);
alert(brow);
alert(lcol);
alert(rcol);
alert(trow);
See Also

Reference

Worksheet type