ChartArea.AlignWithChartArea Property
Gets or sets the name of the ChartArea object to which this chart area should be aligned.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
[BindableAttribute(true)] [PersistenceModeAttribute(PersistenceMode.Attribute)] public string AlignWithChartArea { get; set; }
Property Value
Type: System.StringA string value that represents the name of a ChartArea object to which this chart area should be aligned. The default is the empty string.
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.
First, set the AlignWithChartArea property to the name of a ChartArea object. 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.
If the AlignWithChartArea property is not set, the chart area will not be aligned, regardless of the AlignmentStyle and AlignmentOrientation settings.
Available since 4.0