ComponentOne Expression Editor for WPF
C1.WPF.ExpressionEditor.4.6.2 Assembly / C1.ExpressionEditor.Engine Namespace / IExpressionLexer Interface / AddFunction Method
Provides the function description for the C1ExpressionEditorPanel.
The delegate that evaluates the function.
Minimum arguments count.
Maximum arguments count.

In This Topic
    AddFunction Method (IExpressionLexer)
    In This Topic
    Added a custom function to engine of C1ExpressionEditor.
    Syntax
    'Declaration
     
    Sub AddFunction( _
       ByVal items As List(Of ExpressionItem), _
       ByVal function As Func(Of List(Of Object),Object), _
       ByVal minArgsCount As Integer, _
       ByVal maxArgsCount As Integer _
    ) 

    Parameters

    items
    Provides the function description for the C1ExpressionEditorPanel.
    function
    The delegate that evaluates the function.
    minArgsCount
    Minimum arguments count.
    maxArgsCount
    Maximum arguments count.
    See Also