ChartArea.AlignmentStyle Property

.NET Framework (current version)

Gets or sets the alignment style of the ChartArea.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public AreaAlignmentStyles AlignmentStyle { get; set; }

Property Value

Type: System.Windows.Forms.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



Chart areas are aligned using all values.


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


Chart areas are aligned on the cursor.


Chart areas are not automatically aligned.


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


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
Available since 4.0
Return to top