共用方式為


ChartArea.AlignWithChartArea 屬性

定義

取得或設定該圖表區域應對齊的物件名稱 ChartArea

public:
 property System::String ^ AlignWithChartArea { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.LegendAreaNameConverter))]
public string AlignWithChartArea { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.LegendAreaNameConverter))>]
member this.AlignWithChartArea : string with get, set
Public Property AlignWithChartArea As String

屬性值

一個 string 代表該圖表區域應對齊的物件名稱 ChartArea 的值。 預設是空字串。

屬性

備註

透過 、 和 AlignmentOrientationAlignmentStyle屬性的使用AlignWithChartArea,可以將兩個或多個圖表區域水平、垂直或兩者對齊或同步。

首先,將屬性設定 AlignWithChartArea 為物件 ChartArea 名稱。 接著,這個圖表區域會根據設定(定義要使用的對齊)和AlignmentOrientation設定(定義圖表區域中應該用來設定對齊的元素)進行對AlignmentStyle齊。

如果AlignWithChartArea屬性未設定,圖表區域不會對齊,無論設定如何AlignmentStyleAlignmentOrientation

適用於