Spread WPF Documentation
SetActiveViewport Method (Worksheet)
Example 


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)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.