Spread.Sheets Documentation
showCell Method
The row index.
The column index.
The vertical position in which to display the cell.
The horizontal position in which to display the cell.
Moves the view of a cell to the specified position in the viewport.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: any
value = instance.showCell(row, col, verticalPosition, horizontalPosition);
function showCell( 
   row : number,
   col : number,
   verticalPosition : VerticalPosition,
   horizontalPosition : HorizontalPosition
) : any;

Parameters

row
The row index.
col
The column index.
verticalPosition
The vertical position in which to display the cell.
horizontalPosition
The horizontal position in which to display the cell.
Example
This example uses the showCell method.
//Set cell (3,3) as the active cell
activeSheet.setActiveCell(3, 3);
//Display the active cell at top left
activeSheet.showCell(3, 3, GC.Spread.Sheets.VerticalPosition.top, GC.Spread.Sheets.HorizontalPosition.left);
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.