SpreadJS Documentation
getViewportRightColumn Method
The index of the viewport.
Gets the index of the right column in the viewport.
Syntax
var instance = new GcSpread.Sheets.Sheet(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

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.