ExpressionEditorPresenter(ExpressionEditorModel, IExpressionEditorView, ExpressionEditorContext, Func<String, String>) Constructor
Initializes a new instance of the ExpressionEditorPresenter class with the specified settings.
Namespace: DevExpress.Data.Controls.ExpressionEditor
Assembly: DevExpress.Data.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
public ExpressionEditorPresenter(
ExpressionEditorModel model,
IExpressionEditorView view,
ExpressionEditorContext context,
Func<string, string> validate
)
Parameters
Name | Type | Description |
---|---|---|
model | ExpressionEditorModel | An ExpressionEditorModel object. |
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). |
See Also