ChartArea.Axes 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个数组,该数组表示图表区域的所有轴。
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 轴的属性的访问权限。
在运行时,应使用各个轴属性(例如 AxisX, AxisX2等等)访问图表区域的轴。
如果决定在运行时使用此属性(例如,在事件中),可以通过将枚举成员指定 AxisName 为标识符来访问此数组中的项。