Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / GetCellFromPixel Method / GetCellFromPixel(Int32,Int32,Int32,Int32) Method
Row index in the viewport
Column index in the viewport
X-coordinate (in pixels) of the pointer location
Y-coordinate (in pixels) of the pointer location


In This Topic
    GetCellFromPixel(Int32,Int32,Int32,Int32) Method
    In This Topic
    Gets the row and column indexes of the cell at the specified pointer location in the view.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetCellFromPixel( _
       ByVal rowViewportIndex As Integer, _
       ByVal columnViewportIndex As Integer, _
       ByVal x As Integer, _
       ByVal y As Integer _
    ) As CellRange
    'Usage
     
    
    Dim instance As SpreadView
    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)
    public CellRange GetCellFromPixel( 
       int rowViewportIndex,
       int columnViewportIndex,
       int x,
       int y
    )

    Parameters

    rowViewportIndex
    Row index in the viewport
    columnViewportIndex
    Column index in the viewport
    x
    X-coordinate (in pixels) of the pointer location
    y
    Y-coordinate (in pixels) of the pointer location
    See Also