Adds a Series object with the given name to the end of the collection.
Add new data series.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- name
- Name of the series to be added.
Name of the new data series.
Return Value
Returns a reference to the newly added object (the class type will be the class type the collection stores). Refer to the table below for further details.Newly added data series object.
Items are always added as the last item in the collection.
The name argument is the Name property of the object being added.
The following table lists the type of objects that are returned when objects are added to the specified collections:
Name of Collection Class |
Name of Class Added and Returned |
Note: When Series objects are added to the SeriesCollection class using this method the associated DataPoint objects of the newly added Series object can not have more than one (1) Y-value per data point. To add a series that can handle multiple Y-values per data point use the Add(string,int) definition of this overloaded method.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family