Dundas Chart for Windows Forms
ToolTipEventArgs Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : ToolTipEventArgs Class


This class is used as a parameter object in the GetToolTipText event of the root Chart object.
Tool Tips event arguments.

Object Model


Syntax

Visual Basic (Declaration)  
Public Class ToolTipEventArgs 
   Inherits EventArgs
Visual Basic (Usage) Copy Code
Dim instance As ToolTipEventArgs
C#  
public class ToolTipEventArgs : EventArgs 

Remarks

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 the mouse cursor is over when the event is raised.

The GetToolTipText event is raised several seconds after the mouse cursor is held over a relevant chart element.

The properties of ToolTipEventArgs are:

  • the X Property and Y Property, used to get the mouse coordinates.
  • the Text property, used to get the tooltip for the chart element the event is raised for (note that only DataPoint, Series and LegendItem objects can have tooltips assigned to them using their appropriate ToolTip and LegendToolTip properties).  This property can also be used to set the chart element's tooltip (all chart elements can have a tooltip assigned in this way).
  • the HitTestResult property, which provides information on the chart element the event was raised for.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Dundas.Charting.WinControl.ToolTipEventArgs

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.