Cursor.AxisType 属性
定义
获取或设置光标附加到的轴的类型。Gets or sets the type of axis that the cursor is attached to.
public:
property System::Windows::Forms::DataVisualization::Charting::AxisType AxisType { System::Windows::Forms::DataVisualization::Charting::AxisType get(); void set(System::Windows::Forms::DataVisualization::Charting::AxisType value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.AxisType AxisType { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.AxisType : System.Windows.Forms.DataVisualization.Charting.AxisType with get, set
Public Property AxisType As AxisType
属性值
一个 AxisType 枚举值,该值表示光标是附加到主轴还是辅助轴。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. 除条形图外,所有图表的主轴位于 (主 X 轴的底部) 并左 (主 Y 轴) 图表区的边框。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.
辅助轴位于 (辅助 X 轴的右侧) 并位于图表区域的顶部 (辅助 Y 轴) 边框。The secondary axes are located at the right (secondary X-axis) and top (secondary Y-axis) border of the chart area.
备注
如果图表区域中绘制的所有序列仅使用一种轴 (例如,主 X 轴) ,然后将该属性设置为系列不使用的轴类型 (在这种情况下,辅助 X 轴) 将不起作用;光标将自动附加到用于绘制序列的唯一轴上。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.