X Property
Collapse the table of content
Expand the table of content

ToolTipEventArgs.X Property

.NET Framework (current version)
 

Gets the X coordinate of the point the mouse cursor is held over when the GetToolTipText event is raised.

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

public int X { get; }

Property Value

Type: System.Int32

An integer value that represents the X coordinate of the mouse cursor.

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

Use the X property to get the X screen coordinate of the point the mouse cursor is held over when the GetToolTipText event is raised.

Note that the X coordinate is measured in pixels; the point (0,0) corresponds to the top-left corner of the chart.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft