Alignment Property

LegendCell::Alignment Property

.NET Framework (current version)

Gets or sets the alignment of the legend cell contents.

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

property ContentAlignment Alignment {
	virtual ContentAlignment get();
	virtual void set(ContentAlignment value);

Property Value

Type: System.Drawing::ContentAlignment

A ContentAlignment value that represents the alignment of the legend cell contents. The default value is MiddleCenter.

The Alignment property is used to align text, series symbols or images within the legend cell.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft