Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.DataManipulation.v4.4 Assembly / Xceed.Chart.DataManipulation Namespace / FunctionCalculator Class / Expression Property
Example


In This Topic
    Expression Property
    In This Topic
    The Expression property defines the function expression or in other words the formula of the function. The expression can be constructed to represent various functions.
    Syntax
    'Declaration
     
    Public Property Expression As String
    'Usage
     
    Dim instance As FunctionCalculator
    Dim value As String
     
    instance.Expression = value
     
    value = instance.Expression
    public string Expression {get; set;}
    Example
    The following code sets an expression for the ADD function with two arguments.
    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