Spread Silverlight Documentation
SetActiveViewport Method (Worksheet)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : SetActiveViewport Method
The index of the row viewport.
The index of the column viewport.
Sets the active viewport.
Syntax
'Declaration
 
Public Sub SetActiveViewport( _
   ByVal rowViewportIndex As System.Integer, _
   ByVal columnViewportIndex As System.Integer _
) 
'Usage
 
Dim instance As Worksheet
Dim rowViewportIndex As System.Integer
Dim columnViewportIndex As System.Integer
 
instance.SetActiveViewport(rowViewportIndex, columnViewportIndex)
public void SetActiveViewport( 
   System.int rowViewportIndex,
   System.int columnViewportIndex
)

Parameters

rowViewportIndex
The index of the row viewport.
columnViewportIndex
The index of the column viewport.
Example
This example uses the SetActiveViewport method.
gcSpreadSheet1.Sheets[0].SetActiveViewport(0, 0);
gcSpreadSheet1.Sheets[0].SetColumnVisible(1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, false);
gcSpreadSheet1.Sheets[0].SetRowVisible(3, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, false);
GcSpreadSheet1.Sheets(0).SetActiveViewport(0, 0)
GcSpreadSheet1.Sheets(0).SetColumnVisible(1, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, False)
GcSpreadSheet1.Sheets(0).SetRowVisible(3, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, False)
See Also

Reference

Worksheet Class
Worksheet Members