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.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
public ExpressionEditorPresenter(
ExpressionEditorModel model,
IExpressionEditorView view,
Func<string, string> validate,
ExpressionEditorContext context
)
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