Share via


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 物件名稱的 string 值,而此圖表區域應該對齊該物件。 預設為空字串。

屬性

備註

您可以使用 AlignWithChartAreaAlignmentOrientationAlignmentStyle 屬性,以水準、垂直或兩者的方式對齊或同步處理兩個或多個圖表區域。

首先,將 AlignWithChartArea 屬性設定為物件的名稱 ChartArea 。 此圖表區域接著會根據設定來對齊,此 AlignmentStyle 設定會定義要使用的對齊方式,以及 AlignmentOrientation 設定,以定義應用來設定對齊的圖表區域元素。

如果 AlignWithChartArea 未設定屬性,則不論和設定為何,圖表區域都不會對齊 AlignmentStyle AlignmentOrientation

適用於