Cursor.AxisType Cursor.AxisType Cursor.AxisType Cursor.AxisType Property


Gets or sets the type of axis that the cursor is attached to.

 property System::Windows::Forms::DataVisualization::Charting::AxisType AxisType { System::Windows::Forms::DataVisualization::Charting::AxisType get(); void set(System::Windows::Forms::DataVisualization::Charting::AxisType value); };
public System.Windows.Forms.DataVisualization.Charting.AxisType AxisType { get; set; }
member this.AxisType : System.Windows.Forms.DataVisualization.Charting.AxisType with get, set
Public Property AxisType As AxisType

Property Value

An AxisType enumeration value that represents whether the axis is attached to the primary or secondary axis.


There are two sets of axes: primary and secondary. Primary axes for all charts except the bar charts are located at the bottom (primary X-axis) and left (primary Y-axis) border of the chart area.

The secondary axes are located at the right (secondary X-axis) and top (secondary Y-axis) border of the chart area.


If all series plotted within a chart area use only one type of axis (for example, the primary X-axis), then setting this property to an axis type not used by the series (in this case, the secondary X-axis) will have no effect; the cursor will automatically be attached to the only axis being used to plot the series.

Applies to