SpreadJS Documentation
getViewportRightColumn Method
GC.Spread.Sheets Namespace > Worksheet type : getViewportRightColumn Method
The index of the viewport.
Gets the index of the right column in the viewport.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: number
value = instance.getViewportRightColumn(columnViewportIndex);
function getViewportRightColumn( 
   columnViewportIndex : number
) : number;

Parameters

columnViewportIndex
The index of the viewport.

Return Value

The index of the right column 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