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.Web.UI.DataVisualization.Charting.LegendAreaNameConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public string AlignWithChartArea { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.LegendAreaNameConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.AlignWithChartArea : string with get, set
Public Property AlignWithChartArea As String

属性值

一个 string 值,该值表示此图表区域应与之对齐的 ChartArea 对象的名称。 默认值为空字符串。

属性

注解

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

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

AlignWithChartArea如果未设置 属性,则无论 AlignmentStyleAlignmentOrientation 设置如何,图表区都不会对齐。

适用于