[]
Contains settings affecting parsing, that is, converting a string to the required data type.
[TypeConverter(typeof(GenericInheritConverter))]
public class ParseInfo
Name | Description |
---|---|
CaseSensitive | Gets or sets a value indicating whether string comparisons are case-sensitive. |
CustomFormat | Gets or sets custom format specifies (in parsing used for DateTime and Boolean types only). |
DateTimeStyle | Gets or sets an enumerable value indicating the styles (flags) permitted in input strings representing date/time. |
EmptyAsNull | Gets or sets a value indicating whether empty strings are interpreted as null values (DBNull). |
ErrorMessage | Gets or sets error message shown in the standard message box and/or in the exception. |
FormatType | Gets or sets the format used for parsing. |
Inherit | Gets or sets a value manages inheritance of the ParseInfo properties from the host control properties. |
NullText | Gets or sets the string representing DbNull value. |
NumberStyle | Gets or sets an enumerable value indicating the styles (flags) permitted in input strings representing numbers. |
TrimEnd | Gets or sets a value indicating whether trailing spaces are removed before parsing. |
TrimStart | Gets or sets a value indicating whether leading spaces are removed before parsing. |
Name | Description |
---|---|
IsTextDbNull(string, CultureInfo) | Returns True if the argument represents a null value (DBNull). |
OnParsed(ParseEventArgs) | Raises the Parsed event. |
OnParsing(ParseEventArgs) | Raises the Parsing event. |
Parse(string, Type, out object, ErrorInfo) | Converts text to the specified data type. |
ParseBoolean(string, FormatType, CultureInfo) | Converts the text to a Boolean value. |
ParseDateTime(string, FormatType, CultureInfo) | Converts text to a value using one of DateTime formats. |
ParseFixed(string, FormatType, CultureInfo) | Converts the text to a Decimal value using a fixed numeric format. |
ParseFloat(string, FormatType, CultureInfo) | Converts the text to a Double value using a float numeric format. |
ParseInteger(string, FormatType, CultureInfo) | Converts the text to Int64 value using an integer numeric format. |
Reset() | Resets whole ParseInfo property of base control |
ResetCaseSensitive() | Restores the default value of the CaseSensitive property. |
ResetCustomFormat() | Restores the default value of the CustomFormat property. |
ResetEmptyAsNull() | Restores the default value of the EmptyAsNull property. |
ResetErrorMessage() | Restores the default value of the ErrorMessage property. |
ResetFormatType() | Restores the default value of the FormatType property. |
ResetNullText() | Restores the default value of the NullText 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. |
ShouldSerializeCustomFormat() | Specifies whether to save the value of the CustomFormat property. |
ShouldSerializeEmptyAsNull() | Specifies whether to save the value of the EmptyAsNull property. |
ShouldSerializeErrorMessage() | Specifies whether to save the value of the ErrorMessage property. |
ShouldSerializeFormatType() | Specifies whether to save the value of the FormatType property. |
ShouldSerializeNullText() | Specifies whether to save the value of the NullText property. |
ShouldSerializeTrimEnd() | Specifies whether to save the value of the TrimEnd property. |
ShouldSerializeTrimStart() | Specifies whether to save the value of the TrimStart property. |
Name | Description |
---|---|
Parsed | Occurs after the input string value has been converted to the DataType. |
Parsing | Occurs when the input string is parsed programmatically. |