ChartArea.Axes 属性
定义
获取或设置表示图表区域中所有轴的数组。Gets or sets an array that represents all axes for a chart area.
public:
property cli::array <System::Web::UI::DataVisualization::Charting::Axis ^> ^ Axes { cli::array <System::Web::UI::DataVisualization::Charting::Axis ^> ^ get(); void set(cli::array <System::Web::UI::DataVisualization::Charting::Axis ^> ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxesArrayConverter))]
public System.Web.UI.DataVisualization.Charting.Axis[] Axes { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxesArrayConverter))>]
member this.Axes : System.Web.UI.DataVisualization.Charting.Axis[] with get, set
Public Property Axes As Axis()
属性值
- Axis[]
Axis 对象的数组,该数组表示图表区域使用的所有轴。An array of Axis objects that represents all axes used by a chart area.
- 属性
注解
此属性的主要用途是在设计时提供对 X、Y、X2 和 Y2 轴的属性的访问。The main purpose of this property is to provide access to the properties of the X, Y, X2 and Y2 axes at design time.
在运行时,应使用各个轴属性(例如、等)访问图表区的轴 AxisX AxisX2 。At run time, the axes for a chart area should be accessed using the individual axis properties, such as AxisX, AxisX2, and so forth.
如果决定在运行时使用此属性(例如,在事件中),可以通过指定 AxisName 枚举成员作为标识符来访问此数组中的项。If you decide to use this property at run time - for example, in an event - you can access an item in this array by specifying an AxisName enumeration member as the identifier.