ChartArea.Axes 属性

定义

获取或设置一个数组,该数组表示图表区域的所有轴。

public:
 property cli::array <System::Windows::Forms::DataVisualization::Charting::Axis ^> ^ Axes { cli::array <System::Windows::Forms::DataVisualization::Charting::Axis ^> ^ get(); void set(cli::array <System::Windows::Forms::DataVisualization::Charting::Axis ^> ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxesArrayConverter))]
public System.Windows.Forms.DataVisualization.Charting.Axis[] Axes { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxesArrayConverter))>]
member this.Axes : System.Windows.Forms.DataVisualization.Charting.Axis[] with get, set
Public Property Axes As Axis()

属性值

Axis[]

表示图表区域使用的所有轴的对象数组 Axis

属性

注解

此属性的主要用途是在设计时提供对 X、Y、X2 和 Y2 轴的属性的访问权限。

在运行时,应使用各个轴属性(例如 AxisXAxisX2等等)访问图表区域的轴。

如果决定在运行时使用此属性(例如,在事件中),可以通过将枚举成员指定 AxisName 为标识符来访问此数组中的项。

适用于