TcxCustomTextEditProperties.IsDisplayValueValid(TcxEditValue,Boolean) Method
Determines whether the specified display value is valid.
Declaration
function IsDisplayValueValid(var ADisplayValue: TcxEditValue; AEditFocused: Boolean): Boolean; virtual;
Parameters
Name | Type |
---|---|
ADisplayValue | TcxEditValue |
AEditFocused | Boolean |
Returns
Type |
---|
Boolean |
Remarks
The IsDisplayValueValid method returns True if the specified display value is valid and can be assigned to the Text property which stores the display value for an editor. Otherwise, it returns False.
The function is called when
Assigning a value to the editor Text property;
Pasting the text from the clipboard;
Cutting the text to the clipboard.
If a user changes the display value by typing text, every character is validated by the editor’s IsValidChar protected method instead.
The ValidateDisplayValue method validates the display value before converting it to the edit value (when a user moves focus to another control or presses the Enter key).
See Also