Gets the index of the viewport row for the specified coordinate for the active sheet.
Syntax
Visual Basic (Declaration) | |
---|
Public Function GetRowViewportIndexFromY( _
ByVal y As Integer _
) As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SpreadView
Dim y As Integer
Dim value As Integer
value = instance.GetRowViewportIndexFromY(y) |
C# | |
---|
public int GetRowViewportIndexFromY(
int y
) |
Parameters
- y
- Y coordinate
Return Value
Integer index of viewport row
Remarks
Example
This example uses the GetRowViewportIndexFromY method.
C# | Copy Code |
---|
private void fpSpread1MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
int i;
i = fpSpread1.GetRootWorkbook.GetRowViewportIndexFromY(e.Y);
Debug.WriteLine(i.ToString);
} |
VB.NET | Copy Code |
---|
Private Sub FpSpread1MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread1.MouseDown
Dim i As Integer
i = FpSpread1.GetRootWorkbook.GetColumnViewportIndexFromX(e.X)
Debug.WriteLine(i.ToString)
End Sub |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also