GrapeCity.Xaml.SpreadSheet.Data
ViewportInfo Constructor(Worksheet,Int32,Int32)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > ViewportInfo Class > ViewportInfo Constructor : ViewportInfo Constructor(Worksheet,Int32,Int32)
The sheet.
The row viewport count.
The column viewport count.
Initializes a new instance of the ViewportInfo class.
Syntax
'Declaration
 
Public Function New( _
   ByVal sheet As Worksheet, _
   ByVal rowViewportCount As Integer, _
   ByVal columnViewportCount As Integer _
)
'Usage
 
Dim sheet As Worksheet
Dim rowViewportCount As Integer
Dim columnViewportCount As Integer
 
Dim instance As New ViewportInfo(sheet, rowViewportCount, columnViewportCount)
public ViewportInfo( 
   Worksheet sheet,
   int rowViewportCount,
   int columnViewportCount
)

Parameters

sheet
The sheet.
rowViewportCount
The row viewport count.
columnViewportCount
The column viewport count.
Example
This example creates ViewportInfo object.
GrapeCity.Xaml.SpreadSheet.Data.ViewportInfo vinfo = new GrapeCity.Xaml.SpreadSheet.Data.ViewportInfo(gcSpreadSheet1.Sheets[0], 1, 1);            
gcSpreadSheet1.Sheets[0].SetViewportInfo(vinfo);
Dim vinfo As New GrapeCity.Xaml.SpreadSheet.Data.ViewportInfo(GcSpreadSheet1.Sheets(0), 1, 1)
GcSpreadSheet1.Sheets(0).SetViewportInfo(vinfo)
See Also

Reference

ViewportInfo Class
ViewportInfo Members
Overload List