Spread WinForms 15
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / GetCellFromPixel Method
Index of the row of the viewport
Index of the column of the viewport
X-coordinate of the pointer location
Y-coordinate of the pointer location


In This Topic
GetCellFromPixel Method (FpSpread)
In This Topic
Gets the row and column indexes of the cell at the specified pointer location.
Syntax
'Declaration
 
Public Function GetCellFromPixel( _
   ByVal rowViewportIndex As Integer, _
   ByVal columnViewportIndex As Integer, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As CellRange
 
'Usage
 
Dim instance As FpSpread
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
Dim x As Integer
Dim y As Integer
Dim value As CellRange
 
value = instance.GetCellFromPixel(rowViewportIndex, columnViewportIndex, x, y)

Parameters

rowViewportIndex
Index of the row of the viewport
columnViewportIndex
Index of the column of the viewport
x
X-coordinate of the pointer location
y
Y-coordinate of the pointer location
See Also