Skip to main content

ExpressionEditorUIHelper.RunExpressionEditor(ref String, IExpressionEditorView, ExpressionEditorContext, Func<String, String>) Method

Runs the Expression Editor with the specified settings.

Namespace: DevExpress.Data.Controls.ExpressionEditor

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public static bool RunExpressionEditor(
    ref string expressionString,
    IExpressionEditorView view,
    ExpressionEditorContext context,
    Func<string, string> validate
)

Parameters

Name Type Description
expressionString String

A String value, specifying the expression.

view IExpressionEditorView

An object implementing the IExpressionEditorView interface.

context ExpressionEditorContext

An ExpressionEditorContext object.

validate Func<String, String>

A function delegate, providing additional expression validation on closing the editor with the specified expression (the first string) and error text (the second string). Validation is passed when this parameter is null or empty. Otherwise, the editor cannot be closed (this behavior is defined by the view’s default implementation).

Returns

Type Description
Boolean

true, if the editor was closed by clicking the OK button; otherwise, false.

See Also