Back to Devexpress

LinearGaugeControl.CalcHitInfo(Point) Method

wpf-devexpress-dot-xpf-dot-gauges-dot-lineargaugecontrol-dot-calchitinfo-x28-system-dot-windows-dot-point-x29.md

latest1.9 KB
Original Source

LinearGaugeControl.CalcHitInfo(Point) Method

Returns information on the gauge elements located at the specified point.

Namespace : DevExpress.Xpf.Gauges

Assembly : DevExpress.Xpf.Gauges.v25.2.dll

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public LinearGaugeHitInfo CalcHitInfo(
    Point point
)
vb
Public Function CalcHitInfo(
    point As Point
) As LinearGaugeHitInfo

Parameters

NameTypeDescription
pointPoint

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

|

Returns

TypeDescription
LinearGaugeHitInfo

A LinearGaugeHitInfo object, which contains information about the gauge 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 gauge’s MouseDown event to determine which element was clicked. In such cases, pass the current mouse pointer’s coordinates as the method’s parameter.

See Also

LinearGaugeControl Class

LinearGaugeControl Members

DevExpress.Xpf.Gauges Namespace