Spread WPF Documentation
GetViewportTopRow Method (Worksheet)
Example 


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

Parameters

rowViewportIndex
The index of the row viewport.

Return Value

The viewport top row.
Example
This example uses the GetViewportTopRow method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportHeight(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportInfo().ColumnViewportCount.ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportLeftColumn(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportTopRow(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportWidth(0).ToString());
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportHeight(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportInfo.ColumnViewportCount.ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportLeftColumn(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportTopRow(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportWidth(0).ToString())
See Also

Reference

Worksheet Class
Worksheet Members