Export (0) Print
Expand All

Chart.Legends Property

Gets or sets a LegendCollection that stores all Legend objects used by the Chart control.

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

public LegendCollection Legends { get; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.LegendCollection
A LegendCollection object that contains the Legend objects used by the chart.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft