Прочетете на английски Редактиране

Споделяне чрез


CursorEventArgs.Axis Property

Definition

Gets the Axis object that a cursor or range selection belongs to.

C#
public System.Windows.Forms.DataVisualization.Charting.Axis Axis { get; }

Property Value

An Axis object that represents the axis that a cursor or range selection belongs to.

Remarks

The Axis property is exposed in the following events of the root Chart object: CursorPositionChanged, CursorPositionChanging, SelectionRangeChanged and SelectionRangeChanging.

This property can be used to:

  • determine the type of axis - X, X2, Y or Y2 - that the event is being raised for, using the AxisName property.

  • get and set axis properties, such as LineColor.

Applies to

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1