Export (0) Print
Expand All

LegendCollection.Add Method (String)

.NET Framework 4.6 and 4.5

Adds the specified Legend object to the end of the collection.

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

public Legend Add(
	string name


Type: System.String

The name of the legend to be added.

Return Value

Type: System.Web.UI.DataVisualization.Charting.Legend
A string value that represents the index of the added item.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft