[]
Validating the input string entered by the user, before parsing.
[TypeConverter(typeof(GenericInheritConverter))]
public class PreValidation
| Name | Description |
|---|---|
| CaseSensitive | Gets or sets a value indicating whether string comparisons are case-sensitive. |
| CustomPlaceholders | Gets the collection of user-defined characters to use in a wildcard pattern. |
| ErrorMessage | Gets or sets error message shown in the standard message box and/or in the exception. |
| Inherit | Manages inheritance of the PreValidation properties from the host control properties. |
| ItemSeparator | Gets or sets string separating list items in PatternString. |
| PatternString | Gets or sets string containing the validation pattern. |
| RegexOptions | Gets or sets settings affecting regular expression matching. |
| TrimEnd | Gets or sets a value indicating whether trailing spaces are removed before validation. |
| TrimStart | Gets or sets a value indicating whether leading spaces are removed before validation. |
| Validation | Gets or sets a value indicating the validation method. |
| Name | Description |
|---|---|
| MatchExactList(string, ErrorInfo) | Returns True if the input text matches one of the exact list items specified in PatternString. |
| MatchRegex(string, ErrorInfo) | Returns True if the input text matches the regular expression pattern specified in PatternString. |
| MatchWildcardPattern(string, string) | Returns True if the input text matches the specified wildcard pattern passed as argument. |
| MatchWildcardPatterns(string, ErrorInfo) | Returns True if the input text matches at least one of the wildcard patterns specified in PatternString. |
| OnValidated(PreValidationEventArgs) | Raises the Validated event. |
| OnValidating(PreValidationEventArgs) | Raises the Validating event. |
| Reset() | Resets whole PreValidation property of base control |
| ResetCaseSensitive() | Restores the default value of the CaseSensitive property. |
| ResetCustomPlaceholders() | Restores the default value of the CustomPlaceholders property. |
| ResetErrorMessage() | Restores the default value of the ErrorMessage property. |
| ResetTrimEnd() | Restores the default value of the TrimEnd property. |
| ResetTrimStart() | Restores the default value of the TrimStart property. |
| ShouldSerializeCaseSensitive() | Specifies whether to save the value of the CaseSensitive property. |
| ShouldSerializeCustomPlaceholders() | Specifies whether to save the value of the CustomPlaceholders property. |
| ShouldSerializeErrorMessage() | Specifies whether to save the value of the ErrorMessage property. |
| ShouldSerializeTrimEnd() | Specifies whether to save the value of the TrimEnd property. |
| ShouldSerializeTrimStart() | Specifies whether to save the value of the TrimStart property. |
| Validate(string, ErrorInfo) | Returns True if the text successfully passes validation using the current settings of the PreValidation object. |
| Name | Description |
|---|---|
| Validated | Occurs after the input string value has been validated. |
| Validating | Occurs when programmatic input string validating. |