dotnetCHARTING Send comments on this topic.
Add Method
See Also  Example
dotnetCHARTING Namespace > SeriesCollection Class : Add Method



Provided as a shortcut for adding elements, series, and series collections the chart SeriesCollection.

Overload List

OverloadDescription
Add() Provided as a shortcut for adding elements, series, and series collections the chart SeriesCollection.  
Add(Calculation) Adds a series to the collection based on the specified calculation.  
Add(Calculation,String) Adds a series calculated from a specified series.  
Add(Series) Adds a specified Series class to this collection.  
Add(SeriesCollection) Adds a specified SeriesCollection to this collection.  
Add(Series[])Adds the specified Series objects to this collection.  
Add(SeriesCollection[])Adds Series of the specified SeriesCollection objects to this collection.  

Example

Adds an element using the shortcut.
C#Copy Code
[C#] 
Chart.Series.Element.YValue = 10; 
Chart.Series.Element.Name = "Element 1"; 
Chart.Series.Elements.Add(); 
Chart.SeriesCollection.Add(); 
C#Copy Code
[Visual Basic] 
Chart.Series.Element.YValue = 10 
Chart.Series.Element.Name = "Element 1" 
Chart.Series.Elements.Add() 
Chart.SeriesCollection.Add() 

See Also