Share via


ChartArea.AlignmentOrientation 屬性

定義

取得或設定圖表區域的對齊方向。

public:
 property System::Web::UI::DataVisualization::Charting::AreaAlignmentOrientations AlignmentOrientation { System::Web::UI::DataVisualization::Charting::AreaAlignmentOrientations get(); void set(System::Web::UI::DataVisualization::Charting::AreaAlignmentOrientations value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Web.UI.DataVisualization.Charting.AreaAlignmentOrientations AlignmentOrientation { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.AlignmentOrientation : System.Web.UI.DataVisualization.Charting.AreaAlignmentOrientations with get, set
Public Property AlignmentOrientation As AreaAlignmentOrientations

屬性值

AreaAlignmentOrientations 列舉值。

屬性

備註

透過使用 AlignWithChartAreaAlignmentOrientationAlignmentStyle 屬性,您可以水準、垂直或同時對齊或同步兩個或多個圖表區域。

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

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

適用於