[]
        
(Showing Draft Content)

C1.WPF.Grid.FlexGrid.GetCellAtPosition

GetCellAtPosition Method

GetCellAtPosition(RoutedEventArgs)

Gets the cell at the specified pointer position.

Declaration
public (GridCellType cellType, GridCellRange range) GetCellAtPosition(RoutedEventArgs e)
Parameters
Type Name Description
RoutedEventArgs e

The pointer event that is used to get the position.

Returns
Type Description
(GridCellType cellType, GridCellRange range)
Remarks

Unlike HitTest(RoutedEventArgs) method, this doesn't intercept cell elements but calculates the position from the model, and it doesn't honor cell-merging.

GetCellAtPosition(Point)

Gets the cell at the specified pointer position.

Declaration
public (GridCellType cellType, GridCellRange range) GetCellAtPosition(Point pt)
Parameters
Type Name Description
Point pt

The position.

Returns
Type Description
(GridCellType cellType, GridCellRange range)
Remarks

Unlike HitTest(RoutedEventArgs) method, this doesn't intercept cell elements but calculates the position from the model, and it doesn't honor cell-merging.