通过


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 。 默认值为空字符串。

属性

注解

通过使用 AlignWithChartAreaAlignmentOrientationAlignmentStyle 属性,可以水平、垂直或同时同步两个或两个以上的图表区域。

首先,将 AlignWithChartArea 属性设置为对象的名称 ChartArea 。 然后, AlignmentStyle 此图表区域将根据设置进行对齐,该设置定义要使用的对齐方式,以及 AlignmentOrientation 定义应用于设置对齐方式的图表区域的元素的设置。

如果未设置该 AlignWithChartArea 属性,则不考虑 AlignmentStyleAlignmentOrientation 设置,图表区域都不会对齐。

适用于