ToolTipEventArgs::X 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 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: