Spread Windows Forms 6.0 Product Documentation
GetActiveRowViewportIndex() Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class > GetActiveRowViewportIndex Method : GetActiveRowViewportIndex() Method


Glossary Item Box

Gets the index of the active viewport row for the active sheet.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetActiveRowViewportIndex() As Integer
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Integer
 
value = instance.GetActiveRowViewportIndex()
C# 
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

C#Copy Code
fpSpread1.AddViewport(0, 0);

int i;
i = fpSpread1.GetActiveRowViewportIndex();
textBox1.Text = i.ToString();
Visual BasicCopy Code
FpSpread1.AddViewport(0, 0)

Dim i As Integer
i = FpSpread1.GetActiveRowViewportIndex()
TextBox1.Text = i.ToString()

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.