Add series object into the collection.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- value
- Object to be added.
Series to add.
Return Value
Returns an integer that represents the index where the item was inserted into the collection (0-based).Index of the newly added object.
Adds an object to a collection, and returns the index where the item was inserted. Items are always added as the last item in a collection.
The name of the object is guaranteed to be unique, and is the class name of the object added followed by an integer (e.g. Series1, Series2, etc.).
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