LegendCollection.Add Method (String)

.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.

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
)

Parameters

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
Available since 4.0
Return to top
Show: