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)

[BindableAttribute(true)]
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

Description

All

Chart areas are aligned using all values.

AxesView

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

Cursor

Chart areas are aligned on the cursor.

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