.netCHARTING v10.5 Documentation
Example 


Add() Method
Provided as a shortcut for adding elements, series, and series collections the chart SeriesCollection.
Syntax
'Declaration
 
Public Overloads Function Add() As Integer
'Usage
 
Dim instance As SeriesCollection
Dim value As Integer
 
value = instance.Add()
public int Add()
Example
Adds an element using the shortcut.
[C#]
Chart.Series.Element.YValue = 10;
Chart.Series.Element.Name = "Element 1";
Chart.Series.Elements.Add();
Chart.SeriesCollection.Add();
[Visual Basic]
Chart.Series.Element.YValue = 10
Chart.Series.Element.Name = "Element 1"
Chart.Series.Elements.Add()
Chart.SeriesCollection.Add()
Requirements

Target Platforms: 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

See Also