Spread Silverlight Documentation
SetViewportTopRow(Int32,Int32) Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > SheetView Class > SetViewportTopRow Method : SetViewportTopRow(Int32,Int32) Method
The row viewport index.
The row index.
Sets the row viewport's top row.
Syntax
'Declaration
 
Public Overloads Overridable Sub SetViewportTopRow( _
   ByVal rowViewportIndex As System.Integer, _
   ByVal value As System.Integer _
) 
'Usage
 
Dim instance As SheetView
Dim rowViewportIndex As System.Integer
Dim value As System.Integer
 
instance.SetViewportTopRow(rowViewportIndex, value)
public virtual void SetViewportTopRow( 
   System.int rowViewportIndex,
   System.int value
)

Parameters

rowViewportIndex
The row viewport index.
value
The row index.
Example
This example uses the SetViewportTopRow method.
GcSpreadSheet1.AddColumnViewport(0, 100);
GcSpreadSheet1.AddRowViewport(0, 80);
GcSpreadSheet1.View.SetViewportLeftColumn(1);
GcSpreadSheet1.View.SetViewportTopRow(1);
GcSpreadSheet1.View.SetViewportLeftColumn(1, 1);
GcSpreadSheet1.View.SetViewportTopRow(1, 1);
GcSpreadSheet1.AddColumnViewport(0, 100)
GcSpreadSheet1.AddRowViewport(0, 80)
GcSpreadSheet1.View.SetViewportLeftColumn(1)
GcSpreadSheet1.View.SetViewportTopRow(1)
GcSpreadSheet1.View.SetViewportLeftColumn(1, 1)
GcSpreadSheet1.View.SetViewportTopRow(1, 1)
See Also

Reference

SheetView Class
SheetView Members
Overload List