GrapeCity.Xaml.SpreadSheet.Data
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 Integer, _
   ByVal columnViewportIndex As Integer _
) 
'Usage
 
Dim instance As Worksheet
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
 
instance.SetActiveViewport(rowViewportIndex, columnViewportIndex)
public void SetActiveViewport( 
   int rowViewportIndex,
   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.Xaml.SpreadSheet.Data.SheetArea.Cells, false);
gcSpreadSheet1.Sheets[0].SetRowVisible(3, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, false);
GcSpreadSheet1.Sheets(0).SetActiveViewport(0, 0)
GcSpreadSheet1.Sheets(0).SetColumnVisible(1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, False)
GcSpreadSheet1.Sheets(0).SetRowVisible(3, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, False)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options