共用方式為


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 軸屬性的存取權。

在執行時間,您應該使用個別的軸屬性(例如、等)來存取圖表區域的 AxisX 座標軸 AxisX2

如果您決定在執行時間使用這個屬性(例如,在事件中),您可以藉由指定 AxisName 列舉成員做為識別碼,來存取這個陣列中的專案。

適用於