Spread Windows Forms 12.0 Product Documentation
GetActiveRowViewportIndex() Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class > GetActiveRowViewportIndex Method : GetActiveRowViewportIndex() Method
Gets the index of the active viewport row.
Syntax
'Declaration
 
Public Overloads Function GetActiveRowViewportIndex() As Integer
'Usage
 
Dim instance As SpreadView
Dim value As Integer
 
value = instance.GetActiveRowViewportIndex()
public int GetActiveRowViewportIndex()

Return Value

Integer index of the active viewport row
Remarks

Indexes are zero-based, so the first item has an index of 0, etc.

Example

The viewport row index is zero-based, so the first (top) viewport row has an index of 0.

FarPoint.Win.Spread.SpreadView sv;
sv = fpSpread1.GetRootWorkbook();
sv.AddViewport(0, 0);
label1.Text = sv.GetActiveRowViewportIndex().ToString();
Dim sv As FarPoint.Win.Spread.SpreadView
sv = FpSpread1.GetRootWorkbook
sv.AddViewport(0, 0)
Label1.Text = sv.GetActiveRowViewportIndex().ToString()
See Also

Reference

SpreadView Class
SpreadView Members
Overload List