Position Property

Legend.Position Property

.NET Framework (current version)
 

Gets or sets an ElementPosition object, which can be used to get or set the position of the legend.

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

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public ElementPosition Position { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.ElementPosition

An ElementPosition value that represents the position of the legend. The default value is Auto.

If the Position property is automatic (that is, Legend.Position.Auto = true) the legend position is calculated automatically by the Chart control, taking into account the Docking, Alignment and IsDockedInsideChartArea property settings.

If it is not automatic, the Docking, DockedToChartArea and IsDockedInsideChartArea properties are ignored, and the legend position is solely determined by the value of the returned ElementPosition object.

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