ChartArea::AlignmentOrientation Property

.NET Framework (current version)
 

Gets or sets the alignment orientation of a chart area.

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

public:
[BindableAttribute(true)]
property AreaAlignmentOrientations AlignmentOrientation {
	AreaAlignmentOrientations get();
	void set(AreaAlignmentOrientations value);
}

Property Value

Type: System.Windows.Forms.DataVisualization.Charting::AreaAlignmentOrientations

An AreaAlignmentOrientations enumeration value that specifies the alignment orientation of a chart area.

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.

.NET Framework
Available since 4.0
Return to top
Show: