ExpressionEditorPresenter(ExpressionEditorModel, IExpressionEditorView, Func<String, String>, ExpressionEditorContext) Constructor

Initializes a new instance of the ExpressionEditorPresenter class with the specified settings.

Namespace: DevExpress.Data.Controls.ExpressionEditor

Assembly: DevExpress.Data.v20.2.dll

Declaration

public ExpressionEditorPresenter(
    ExpressionEditorModel model,
    IExpressionEditorView view,
    Func<string, string> validate,
    ExpressionEditorContext context
)
Public Sub New(
    model As ExpressionEditorModel,
    view As IExpressionEditorView,
    validate As Func(Of String, String),
    context As ExpressionEditorContext
)

Parameters

Name Type Description
model ExpressionEditorModel

An ExpressionEditorModel object.

view IExpressionEditorView

An object implementing the IExpressionEditorView interface.

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).

context ExpressionEditorContext

An ExpressionEditorContext object.

See Also