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


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

    Parameters

    x
    X-coordinate (in pixels) of the pointer location
    y
    Y-coordinate (in pixels) of the pointer location
    See Also