ChartArea.AlignWithChartArea 属性
定义
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 对象的名称。A string value that represents the name of a ChartArea object to which this chart area should be aligned. 默认值为空字符串。The default is the empty string.
- 属性
注解
通过使用 AlignWithChartArea 、 AlignmentOrientation 和 AlignmentStyle 属性,可以将两个或更多个图表区域水平对齐、垂直对齐或同步。Through the use of the AlignWithChartArea, AlignmentOrientation and AlignmentStyle properties, it is possible to align or synchronize two or more chart areas horizontally, vertically or both.
首先,将 AlignWithChartArea 属性设置为对象的名称 ChartArea 。First, set the AlignWithChartArea property to the name of a ChartArea object. 然后,将根据 AlignmentStyle 设置(用于定义要使用的对齐方式)和 AlignmentOrientation 设置(定义应用于设置对齐方式的图表区的元素)对齐此图表区。This chart area will then be aligned, based on the AlignmentStyle setting, which defines the alignment to use, and the AlignmentOrientation setting, which defines the elements of the chart area that should be used to set the alignment.
如果 AlignWithChartArea 未设置该属性,则不会对齐图表区,而与 AlignmentStyle 和 AlignmentOrientation 设置无关。If the AlignWithChartArea property is not set, the chart area will not be aligned, regardless of the AlignmentStyle and AlignmentOrientation settings.