[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SpreadView.GetCellFromPixel

GetCellFromPixel Method

GetCellFromPixel(int, int)

Gets the row and column indexes of the cell at the specified pointer location.

Declaration
public CellRange GetCellFromPixel(int x, int y)
Public Function GetCellFromPixel(x As Integer, y As Integer) As CellRange
Parameters
Type Name Description
int x

X-coordinate (in pixels) of the pointer location

int y

Y-coordinate (in pixels) of the pointer location

Returns
Type Description
CellRange

GetCellFromPixel(int, int, int, int)

Gets the row and column indexes of the cell at the specified pointer location in the view.

Declaration
public CellRange GetCellFromPixel(int rowViewportIndex, int columnViewportIndex, int x, int y)
Public Function GetCellFromPixel(rowViewportIndex As Integer, columnViewportIndex As Integer, x As Integer, y As Integer) As CellRange
Parameters
Type Name Description
int rowViewportIndex

Row index in the viewport

int columnViewportIndex

Column index in the viewport

int x

X-coordinate (in pixels) of the pointer location

int y

Y-coordinate (in pixels) of the pointer location

Returns
Type Description
CellRange