[]
        
(Showing Draft Content)

C1.WPF.ExpressionEditor.C1ExpressionEditor.AddFunction

AddFunction Method

AddFunction(ExpressionItem, Func<List<object>, object>, int, int)

Added a custom function to engine of C1ExpressionEditor.

Declaration
public void AddFunction(ExpressionItem item, Func<List<object>, object> function, int minArgsCount, int maxArgsCount)
Public Sub AddFunction(item As ExpressionItem, [function] As Func(Of List(Of Object), Object), minArgsCount As Integer, maxArgsCount As Integer)
Parameters
Type Name Description
ExpressionItem item

Provides the function description for the C1ExpressionEditorPanel.

Func<List<object>, object> function

The delegate that evaluates the function.

int minArgsCount

Minimum arguments count.

int maxArgsCount

Maximum arguments count.

AddFunction(List<ExpressionItem>, Func<List<object>, object>, int, int)

Added a custom function to engine of C1ExpressionEditor.

Declaration
public void AddFunction(List<ExpressionItem> items, Func<List<object>, object> function, int minArgsCount, int maxArgsCount)
Public Sub AddFunction(items As List(Of ExpressionItem), [function] As Func(Of List(Of Object), Object), minArgsCount As Integer, maxArgsCount As Integer)
Parameters
Type Name Description
List<ExpressionItem> items

Provides the function description for the C1ExpressionEditorPanel.

Func<List<object>, object> function

The delegate that evaluates the function.

int minArgsCount

Minimum arguments count.

int maxArgsCount

Maximum arguments count.

AddFunction(ExpressionItem, Func<List<object>, object>, int)

Added a custom function to engine of C1ExpressionEditor.

Declaration
public void AddFunction(ExpressionItem item, Func<List<object>, object> function, int argsCount)
Public Sub AddFunction(item As ExpressionItem, [function] As Func(Of List(Of Object), Object), argsCount As Integer)
Parameters
Type Name Description
ExpressionItem item

Provides the function description for the C1ExpressionEditorPanel.

Func<List<object>, object> function

The delegate that evaluates the function.

int argsCount

Arguments count.