Back to Devexpress

TileControl.CalcHitInfo(Point) Method

windowsforms-devexpress-dot-xtraeditors-dot-tilecontrol-dot-calchitinfo-x28-system-dot-drawing-dot-point-x29.md

latest1.9 KB
Original Source

TileControl.CalcHitInfo(Point) Method

Returns information on the tile control elements located at the specified point.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public TileControlHitInfo CalcHitInfo(
    Point pt
)
vb
Public Function CalcHitInfo(
    pt As Point
) As TileControlHitInfo

Parameters

NameTypeDescription
ptPoint

A Point structure which specifies the test point coordinates relative to the TileControl‘s top-left corner.

|

Returns

TypeDescription
DevExpress.XtraEditors.TileControlHitInfo

A DevExpress.XtraEditors.TileControlHitInfo object which contains information about the grid elements located at the test point.

|

Remarks

Use the CalcHitInfo method to determine which element is located at the specified point. For instance, this can be used when handling the TileControl‘s Click event to determine which element was clicked. In such cases, pass the current mouse pointer’s coordinates as the method’s parameter.

See Also

TileControl Class

TileControl Members

DevExpress.XtraEditors Namespace