This documentation is archived and is not being maintained.

SeriesCollection::Add Method (String)

Adds a Series object with the given name to the end of the collection.

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

public:
Series^ Add(
	String^ name
)

Parameters

name
Type: System::String
The name of the Series to be added.

Return Value

Type: System.Web.UI.DataVisualization.Charting::Series
The new Series object appended to the collection. .

Items are always added as the last item in the collection.

The name argument refers to the Name property of the object being added.

Note   If you use this method to add Series objects to the SeriesCollection class, the associated DataPoint objects of the newly added Series object cannot have more than one Y-value per data point. To add a series that can handle multiple Y-values per data point, use the Add(String, Int32) definition of this overloaded method.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: