TcxCustomSpinEditProperties.ExceptionOnInvalidInput Property
Indicates whether an exception should be raised when validation of the input value fails.
Declaration
property ExceptionOnInvalidInput: Boolean read; write; default False;
Property Value
Type | Default |
---|---|
Boolean | False |
Remarks
Set this property to True to allow the spin editor to raise an exception when any of the following occurs:
The spin value fails validation (i.e., the value is beyond the MinValue/MaxValue range). An exception is raised only if the evoRaiseException flag is set within the editor Properties.ValidationOptions property. You can handle the editor Properties.OnValidate event to customize the validation results;
The spin value cannot be converted to the edit value. An exception is raised regardless of the editor Properties.ValidationOptions property settings. You can handle the editor Properties.OnGetValue event to customize the conversion results.
If the ExceptionOnInvalidInput property is set to False, an exception is not raised, regardless of the editor Properties.ValidationOptions property settings.
The default value of the ExceptionOnInvalidInput property is False.