Nevron .NET Vision
Nevron.Chart Namespace / NSeriesCollection Class / Add Method / Add(SeriesType) Method
type of series to create
Example


In This Topic
    Add(SeriesType) Method
    In This Topic
    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 NSeriesBase
    'Usage
     
    
    Dim instance As NSeriesCollection
    Dim type As SeriesType
    Dim value As NSeriesBase
     
    value = instance.Add(type)
    public NSeriesBase 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 NBarSeries = chart.Series.Add(SeriesType.Bar)
    NBarSeries bar = (NBarSeries)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