Add Method (NArgumentCollection)
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.
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)";
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