HitTestResult.Axis Property

Definition

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.

public:
 property System::Web::UI::DataVisualization::Charting::Axis ^ Axis { System::Web::UI::DataVisualization::Charting::Axis ^ get(); void set(System::Web::UI::DataVisualization::Charting::Axis ^ value); };
public System.Web.UI.DataVisualization.Charting.Axis Axis { get; set; }
member this.Axis : System.Web.UI.DataVisualization.Charting.Axis with get, set
Public Property Axis As Axis

Property Value

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

Remarks

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.

Applies to