Nevron .NET Vision
Nevron.Chart.Functions Namespace / NArgumentCollection Class / Add Method
The data series object to be added to the collection.
Example


In This Topic
    Add Method (NArgumentCollection)
    In This Topic
    Adds a new argument to the collection. All the data series that participate in a function expression must be added to the collection before calculating the function.
    Syntax
    'Declaration
     
    
    Public Sub Add( _
       ByVal ds As NDataSeriesDouble _
    ) 
    'Usage
     
    
    Dim instance As NArgumentCollection
    Dim ds As NDataSeriesDouble
     
    instance.Add(ds)
    public void Add( 
       NDataSeriesDouble ds
    )

    Parameters

    ds
    The data series object to be added to the collection.
    Remarks
    The names of the data series in the argument collection must be unique so sometimes it may be necessary to rename a data series before adding it. The names can contain all kinds of characters except '{' and '}'. They cannot consist of whitespaces only.
    Example
    The following example adds two data series to the argument collection and sets an expression which uses them.
    barSeries1.Values.Name = "Apples";
    barSeries2.Values.Name = "Oranges";
    functionCalculator.Arguments.Clear();
    functionCalculator.Arguments.Add(barSeries1.Values);
    functionCalculator.Arguments.Add(barSeries2.Values);
    functionCalculator.Expression = "ADD(Apples ; Oranges)";
    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