HitTestResult.Axis Property

.NET Framework (current version)
 

Gets or sets the Axis object that may be associated with a chart element returned by a hit test. The presence of an associated Axis object depends on whether a chart element was detected at the given location, and the type of chart element returned.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public Axis Axis { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.Axis

An Axis object, otherwise null. The default value is null.

If the chart object returned by the hit test is an object that is associated with an axis—for example, a scrollbar element, tick mark, grid line or strip line—the Axis property will reference the Axis object with which the returned chart object is associated. Otherwise this property will be null.

Note that the HitTest method can be called explicitly, in which case a chart element may or may not be at the specified location.

.NET Framework
Available since 4.0
Return to top
Show: