Spread Silverlight Documentation
GetViewportTopRow(Int32) Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > SheetView Class : GetViewportTopRow(Int32) Method
The row viewport index.
Gets the row viewport's top row index.
Syntax
'Declaration
 
Public Function GetViewportTopRow( _
   ByVal rowViewportIndex As System.Integer _
) As System.Integer
'Usage
 
Dim instance As SheetView
Dim rowViewportIndex As System.Integer
Dim value As System.Integer
 
value = instance.GetViewportTopRow(rowViewportIndex)
public System.int GetViewportTopRow( 
   System.int rowViewportIndex
)

Parameters

rowViewportIndex
The row viewport index.

Return Value

The top row index in the row viewport.
Example
This example uses the GetViewportTopRow method.
TextBox1.Text = GcSpreadSheet1.View.GetViewportBottomRow(0).ToString();
//TextBox1.Text = GcSpreadSheet1.View.GetViewportLeftColumn(0).ToString();
//TextBox1.Text = GcSpreadSheet1.View.GetViewportRightColumn(0).ToString();
//TextBox1.Text = GcSpreadSheet1.View.GetViewportTopRow(0).ToString();
TextBox1.Text = GcSpreadSheet1.View.GetViewportBottomRow(0).ToString()
'TextBox1.Text = GcSpreadSheet1.View.GetViewportLeftColumn(0).ToString()
'TextBox1.Text = GcSpreadSheet1.View.GetViewportRightColumn(0).ToString()
'TextBox1.Text = GcSpreadSheet1.View.GetViewportTopRow(0).ToString()
See Also

Reference

SheetView Class
SheetView Members