Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property int X {
	int 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:
© 2017 Microsoft