[]
Validating the input string entered by the user, before parsing.
[TypeConverter(typeof(GenericInheritConverter))]
public class PreValidation : MarshalByRefObject, IDisposable
Name | Description |
---|---|
CaseSensitive | True if string comparisons are case-sensitive; otherwise, False. |
CustomPlaceholders | The collection of user-defined characters to use in a wildcard pattern. |
ErrorMessage | 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 | String separating list items in PatternString. |
PatternString | String containing the validation pattern. |
RegexOptions | Settings affecting regular expression matching. |
TrimEnd | If True, trailing spaces are removed before validation. |
TrimStart | If True, leading spaces are removed before validation. |
Validation | 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. |
Reset() | Resets whole PreValidation property of base control |
ResetCaseSensitive() | This method is for internal use only. |
ResetCustomPlaceholders() | This method is for internal use only. |
ResetErrorMessage() | This method is for internal use only. |
ResetTrimEnd() | This method is for internal use only. |
ResetTrimStart() | This method is for internal use only. |
ShouldSerializeCaseSensitive() | This method is for internal use only. |
ShouldSerializeCustomPlaceholders() | This method is for internal use only. |
ShouldSerializeErrorMessage() | This method is for internal use only. |
ShouldSerializeTrimEnd() | This method is for internal use only. |
ShouldSerializeTrimStart() | This method is for internal use only. |
Validate(string, ErrorInfo) | Returns True if the text successfully passes validation using the current settings of the PreValidation object. |