[]
The C1ExpressionEditor control is used to dynamically produce an expression and get the result of the expression. It supports DataBinding.
[ToolboxBitmap(typeof(C1ExpressionEditor), "C1ExpressionEditor.png")]
[ComplexBindingProperties("DataSource", "DataMember")]
public class C1ExpressionEditor : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize
| Name | Description |
|---|---|
| C1ExpressionEditor() | Initializes a new instance of the C1ExpressionEditor control. |
| Name | Description |
|---|---|
| DataMember | Gets or sets the specific list in a DataSource object that the grid should display. |
| DataSource | Gets or sets the object used as the data source. |
| DefaultSize | Gets the default size of the control. |
| Expression | Gets or sets expression string. |
| IntelliAutoCompletionEnabled | Gets or sets a value indicating the IntelliAutoCompletion is enabled or not. |
| IntelliDescriptionEnabled | Gets or sets a value indicating if the IntelliDescription is enabled. |
| IntelliErrorsEnabled | Gets or sets a value indicating if the IntelliErrors is enabled. |
| IntelliSyntaxHighlightingEnabled | Gets or sets a value indicating if the IntelliSyntaxHighlighting is enabled. |
| IsValid | Gets value that indicates whether the expression is valid. |
| ItemContext | Gets or sets the object used as the context for evaluating an expression. |
| ShowErrorBox | Gets or sets a value that indicates whether to show error box under the editor. |
| SyntaxHighlighting | Gets or sets a value indicating whether to highlight syntax. |
| Theme | Gets or sets theme. |
| UnderlineErrors | Gets or sets a value indicating whether to underline errors. |
| Name | Description |
|---|---|
| AddAlias(string, string) | Adds an alias for a field from DataSource. |
| AddFunction(ExpressionItem, Func<List<object>, object>, int) | Added a custom function to engine of C1ExpressionEditor. |
| AddFunction(ExpressionItem, Func<List<object>, object>, int, int) | Added a custom function to engine of C1ExpressionEditor. |
| AddFunction(List<ExpressionItem>, Func<List<object>, object>, int, int) | Added a custom function to engine of C1ExpressionEditor. |
| BeginInit() | Signals the object that initialization is starting. |
| Dispose(bool) | Releases the unmanaged resources used by the C1ExpressionEditor and its child controls and optionally releases the managed resources. |
| EndInit() | Signals the object that initialization is complete. |
| Evaluate() | Gets result of the expression. |
| GetErrors() | Gets list of ErrorInfo objects. |
| OnBindingContextChanged(EventArgs) | Raises the BindingContextChanged event. |
| OnExpressionChanged(EventArgs) | Rises the ExpressionChanged event. |
| OnRightToLeftChanged(EventArgs) | Raises the System.Windows.Forms.Control.RightToLeftChanged event. |
| OnThemeChanged(EventArgs) | Rises the StylesChanged event. |
| OnVisibleChanged(EventArgs) | Raises the System.Windows.Forms.Control.VisibleChanged event. |
| ResetEngine() | Resets a engine of C1ExpressionEditor to default. |
| SetCustomEngine(IEngine, IExpressionLexer) | Sets a custom engine to C1ExpressionEditor. |
| ShowAboutBox() | Shows the About Box for an instance of C1ExpressionEditor. |
| TryEvaluate(out object) | Gets a result of expression. A return value indicates whether the evaluate succeeded or failed. |
| Name | Description |
|---|---|
| ExpressionChanged | Occurs when expression string changed. |
| StylesChanged | Occurs when theme or some style has changed. |