ToolTipEventArgs.HitTestResult Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a HitTestResult object, which provides information about the chart element that the GetToolTipText event was raised for.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public HitTestResult HitTestResult { get; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.HitTestResult

A HitTestResult object that represents information for the element the GetToolTipText event was raised for.

This property is exposed in the GetToolTipText event of the root Chart object.

The HitTestResult property can be used to get the object the event was raised for, the type of the chart element the event was raised for, and so forth. For further details, see the HitTestResult class overview.

.NET Framework
Available since 4.0
Return to top
Show: