Assembly: System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
|ToolTipEventArgs(Int32, Int32, String, HitTestResult)|
Initializes a new instance of theclass with the specified x, y, text and result parameters.
Gets or sets the tooltip, if any, of the chart element over which the mouse cursor is held. This property can also set a tooltip for this chart element.
Gets the X coordinate of the point the mouse cursor is held over when the GetToolTipText event is raised.
Gets the Y coordinate of the point the mouse cursor is held over when the GetToolTipText event is raised.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
This class is exposed as the e parameter in the GetToolTipText event, and provides the mouse position, tooltip text, if any, and details about the chart element over which the mouse cursor is held when the event is raised.
The GetToolTipText event is raised several seconds after the mouse cursor is held over a relevant chart element.
Theclass contains the following properties:
The Text property, which is used to get the tooltip for the chart element that the event is raised for. Note that many of the chart elements have a ToolTip, LegendToolTip, and/or LabelToolTip property that you can use to assign a tooltip. These elements include legends, annotations, data points, series, axes, titles, custom labels, and strip lines. This property can also be used to override the tooltip for a chart element, or to set a tooltip for a chart element that doesn't have a ToolTip property.
The HitTestResult property, which provides information on the chart element for which the event was raised.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.