The Exontrol's Expression component is a syntax-editor that helps you to define, view, edit and evaluate expressions. Most of our UI components support formatting based on arithmetic expressions. For instance, the Column.FormatColumn property specifies the format to display the column's content. In other words, if the Column.FormatColumn property is "currency(value)" the column displays values as currency, like $1,234.00, instead 1234.
The Expression objects supports the following properties and methods:
| | Name | Description | |
| | AddCustomOperator | Adds a custom operator. | |
| | AllowContextMenu | Specifies whether the control's default context menu is available. | |
| | AllowDefaultOperators | Specifies whether the expression supports default operators. | |
| | AllowFind | Specifies whether control displays a find dialog when user presses CTRL+F key. | |
| | AllowIncrementalSearch | Specifies whether the control allows incremental search. | |
| | AllowReplace | Specifies whether control displays a replace dialog when user presses CTRL+H key. | |
| | AllowSplitter | Specifies whether the control's splitter is visible or hidden. | |
| | AllowUndoRedo | Specifies whether the control allows undo/redo actions. | |
| | AllowValueKeyword | Specifies whether the expression supports the value keyword. | |
| | Appearance | Retrieves or sets the control's appearance. | |
| | AttachTemplate | Attaches a script to the current object, including the events, from a string, file, a safe array of bytes. | |
| | BackColor | Retrieves or sets a value that indicates the control's background color. | |
| | Background | Returns or sets a value that indicates the background color for parts in the control. | |
| | CanRedo | Determines if the redo queue contains any actions. | |
| | CanUndo | Determines whether the last edit operation can be undone. | |
| | Caption | Specifies the caption for a field on the Find, Replace dialog or control's context menu. | |
| | ClearCustomOperators | Clears the custom operators. | |
| | CodeCompletion | Specifies whether the code completion feature is enabled or disabled. | |
| | ContextKey | Specifies the key combination that opens the control's context window. | |
| | ContextMenuItems | Specifies a list of items that are added to the control's context menu. | |
| | Cursor | Gets or sets the cursor that is displayed when the mouse pointer hovers the control. | |
| | Description | Specifies the description of the giving keyword. | |
| | DisplaySelection | Specifies whether the control displays the selection. | |
| | Enabled | Enables or disables the control. | |
| | Evaluate | Evaluates the current expression and returns the result. | |
| | EvaluateSelection | Specifies whether the control evaluates the selection when it is available. | |
| | EvaluationResult | Specifies the evaluation result, each line indicates a result value. | |
| | EvaluationText | Specifies the evaluation text, each line indicates a test value. | |
| | EvaluationTime | Indicates the time in ms to evaluate the expression. | |
| | EventParam | Retrieves or sets a value that indicates the current's event parameter. | |
| | ExecuteTemplate | Executes a template and returns the result. | |
| | Expression | Indicates the expression to be evaluated. | |
| | Find | Finds a string and selects the string if it is found. | |
| | FocusPane | Specifies the index of pane that has the focus. | |
| | Font | Retrieves or sets the control's font. | |
| | ForeColor | Retrieves or sets a value that indicates the control's foreground color, while the expression is valid. | |
| | ForeColorInvalid | Retrieves or sets a value that indicates the control's foreground color, while expression is invalid. | |
| | FormatABC | Formats the A,B,C values based on the giving expression and returns the result. | |
| | FormatDates | Specifies the HTML format that's applied to dates. | |
| | FormatNumbers | Specifies the HTML format that's applied to numbers. | |
| | FormatResult | Specifies the HTML format to show the result. | |
| | FormatStrings | Specifies the HTML format that's applied to strings. | |
| | HideSelection | Specifies whether the selection in the control is hidden when the control loses the focus. | |
| | hWnd | Gets the window's handle. | |
| | hWndPane | Gets the window handle of the control's pane. | |
| | Images | Sets the control's images list at runtime. The Handle should be a handle to an Image List control. | |
| | ImageSize | Retrieves or sets the size of icons the control displays.. | |
| | IncrementalSearchError | Retrieves or sets a value that specifies the color to show the 'Incremental Search' field when the typing string is not found. | |
| | IndentOnTab | Specifies whether the multiple lines selection is indented when user presses the TAB key. | |
| | IsValid | Specifies whether the expression is valid ( syntactically correct ). | |
| | LineHeight | Specifies an expression that determines the height of the line within the editor. | |
| | Locked | Determines whether a control can be edited. | |
| | MultiLine | Specifies whether the control accepts multiple lines. | |
| | OLEDrag | Causes a component to initiate an OLE drag/drop operation. | |
| | OLEDropMode | Returns or sets how a target component handles drop operations | |
| | Overtype | Specifies whether the control is running in overtype mode. | |
| | Picture | Retrieves or sets a graphic to be displayed in the control. | |
| | PictureDisplay | Retrieves or sets a value that indicates the way how the graphic is displayed on the control's background | |
| | RClick | Specifies whether the control's cursor is placed at the mouse position when user right clicks the control. | |
| | Redo | Redoes the next action in the control's redo queue. | |
| | Refresh | Refreshes the control. | |
| | ReplaceIcon | Adds a new icon, replaces an icon or clears the control's image list. | |
| | ScrollBars | Specifies the type of scroll bars that control has. | |
| | ScrollButtonHeight | Specifies the height of the button in the vertical scrollbar. | |
| | ScrollButtonWidth | Specifies the width of the button in the horizontal scrollbar. | |
| | ScrollFont | Retrieves or sets the scrollbar's font. | |
| | ScrollHeight | Specifies the height of the horizontal scrollbar. | |
| | ScrollOrderParts | Specifies the order of the buttons in the scroll bar. | |
| | ScrollPartCaption | Specifies the caption being displayed on the specified scroll part. | |
| | ScrollPartCaptionAlignment | Specifies the alignment of the caption in the part of the scroll bar. | |
| | ScrollPartEnable | Indicates whether the specified scroll part is enabled or disabled. | |
| | ScrollPartVisible | Indicates whether the specified scroll part is visible or hidden. | |
| | ScrollThumbSize | Specifies the size of the thumb in the scrollbar. | |
| | ScrollToolTip | Specifies the tooltip being shown when the user moves the scroll box. | |
| | ScrollWidth | Specifies the width of the vertical scrollbar. | |
| | SelBackColor | Specifies the selection's background color. | |
| | SelBackColorHide | Specifies the selection's background color, when the control has no focus, and the HideSelection property is False. | |
| | SelForeColor | Specifies the selection's foreground color. | |
| | SelForeColorHide | Specifies the selection's foreground color, when the control has no focus, and the HideSelection property is False. | |
| | SelLength | Returns or sets the number of characters selected. | |
| | SelStart | Returns or sets the starting point of text selected; indicates the position of the insertion point if no text is selected. | |
| | SelText | Returns or sets the string containing the currently selected text. | |
| | ShowCaret | Specifies whether the control's caret is visible or hidden. | |
| | ShowImageList | Specifies whether the control's images panel dialog is visible or hidden. | |
| | ShowToolTip | Shows the specified tooltip at given position. | |
| | SplitPaneHeight | Specifies a value that indicates the height in pixels of the top pane(s) when splitting. | |
| | SplitPaneWidth | Specifies a value that indicates the width in pixels of the left pane(s) when splitting. | |
| | TabLength | Specifies the size of each tab stop, in units equal to the average character width. | |
| | Template | Specifies the control's template. | |
| | Text | Specifies the control's text. | |
| | ToolTipDelay | Specifies the time in ms that passes before the ToolTip appears. | |
| | ToolTipFont | Retrieves or sets the tooltip's font. | |
| | ToolTipOnTyping | Specifies a value that indicates whether the tooltip of the keyword is shown while typing. | |
| | ToolTipPopDelay | Specifies the period in ms of time the ToolTip remains visible if the mouse pointer is stationary within a control. | |
| | ToolTipWidth | Specifies a value that indicates the width of the tooltip window, in pixels. | |
| | Undo | Call this function to undo the last edit-control operation. | |
| | UseTabKey | Specifies whether the control uses the TAB key. | |
| | Version | Retrieves the control's version. | |
| | VisualAppearance | Retrieves the control's appearance. | |
| | WordFromPoint | Retrieves the word from the cursor. | |