Chart.Legends Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a LegendCollection object that is used to store all Legend objects used by the Chart control.

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

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public LegendCollection Legends { get; }

Property Value

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

A LegendCollection object that is used to store all Legend objects.

This collection property stores all Legend objects used by the Chart control.

.NET Framework
Available since 4.0
Return to top
Show: