HitTestResult.Series Property

.NET Framework (current version)
 

Gets or sets the associated series of a data point, if any, returned by a hit test.

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

public Series Series { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.Series

The Series that a data point returned by a hit test belongs to. The default value is null.

If a data point is at the location checked by a hit test, this property will reference the Series object that the data point belongs to. If no data point is returned by the hit test, the value of this property will be null.

To determine the index of a returned data point, use the PointIndex property.

.NET Framework
Available since 4.0
Return to top
Show: