This documentation is archived and is not being maintained.

ChartArea::AlignmentStyle Property

Gets or sets the alignment style of the ChartArea.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[PersistenceModeAttribute(PersistenceMode::Attribute)]
[BindableAttribute(true)]
public:
property AreaAlignmentStyles AlignmentStyle {
	AreaAlignmentStyles get ();
	void set (AreaAlignmentStyles value);
}

Property Value

Type: System.Web.UI.DataVisualization.Charting::AreaAlignmentStyles
An AreaAlignmentStyles enumeration value that can represent either a single value or the bitwise-OR of multiple values that define the alignment to use.

Use the AlignmentStyle property to align two or more chart areas horizontally, vertically or both. The alignment type is one of the following values, or a bitwise OR combination of the values below.

Member Name

Description

All

Chart areas are aligned using all values.

AxesView

Chart areas are aligned using the view of the specified ChartArea.

None

Chart areas are not automatically aligned.

Position

Chart areas are aligned with the Position of the chart area specified.

InnerPlotPosition

Chart areas are aligned with the InnerPlotPosition of the chart area specified.

If the AlignWithChartArea value is not set, the AlignmentStyle property will have no effect.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: