Xceed Chart for WinForms v4.4 Documentation
Add(SeriesType) Method
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > SeriesCollection Class > Add Method : Add(SeriesType) Method
type of series to create
Adds a new series of the specified type and returns a reference to the newly created series object.
Syntax
'Declaration
 
Public Overloads Function Add( _

   ByVal type As SeriesType _

) As SeriesBase
'Usage
 
Dim instance As SeriesCollection

Dim type As SeriesType

Dim value As SeriesBase

 

value = instance.Add(type)
public SeriesBase Add( 

   SeriesType type

)

Parameters

type
type of series to create

Return Value

reference to the series
Example
The following code creates a bar series.
Dim bar As BarSeries =  Chart.Series.Add(SeriesType.Bar)
BarSeries bar = Chart.Series.Add(SeriesType.Bar);
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

Reference

SeriesCollection Class
SeriesCollection Members
Overload List