Skip to main content
All docs
V24.1

ItemsView.CalcHitInfo(Int32, Int32) Method

Returns information about the View elements located at the specified point.

Namespace: DevExpress.XtraGrid.Views.Items

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public ItemsViewHitInfo CalcHitInfo(
    int x,
    int y
)

Parameters

Name Type Description
x Int32

The X coordinate of the test point relative to the top-left corner of the grid control.

y Int32

The Y coordinate of the test point relative to the top-left corner of the grid control.

Returns

Type Description
DevExpress.XtraGrid.Views.Items.ItemsViewHitInfo

An object that contains information on the View elements located at the test point.

Remarks

Use the CalcHitInfo method to get which ItemsView UI element is located at the target position.

See Also