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


Xceed.Chart.DataManipulation.v4.4 Assembly > Xceed.Chart.DataManipulation Namespace > ArgumentCollection Class : Add Method
The data series object to be added to the collection.
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 DataSeries _

) 
'Usage
 
Dim instance As ArgumentCollection

Dim ds As DataSeries

 

instance.Add(ds)
public void Add( 

   DataSeries 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

Reference

ArgumentCollection Class
ArgumentCollection Members