[]
Settings for data formatting, converting data to string.
[TypeConverter(typeof(GenericInheritConverter))]
public class FormatInfo
Name | Description |
---|---|
CustomFormat | Gets or sets the custom format specifies used if FormatType = FormatType.CustomFormat. |
EmptyAsNull | Gets or sets a value indicating whether empty strings are interpreted as null values (DBNull). |
FormatType | Gets or sets the value determining the formatting method, including standard .NET format specifiers, custom and programmatic formatting. |
Inherit | Gets or sets a value manages inheritance of the FormatInfo properties from the host control properties. |
NullText | Gets or sets the string representing DbNull value. |
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 |
---|---|
Format(object) | Formats a value, converts it to a string. |
Format(object, FormatType, CultureInfo) | Formats a value, converts it to a string. |
OnFormatError(FormatErrorEventArgs) | Raises the FormatError event. |
OnFormatting(FormatEventArgs) | Raises the Formatting event. |
Reset() | Resets whole FormatInfo property of base control |
ResetCustomFormat() | Restores the default value of the CustomFormat property. |
ResetEmptyAsNull() | Restores the default value of the EmptyAsNull 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. |
ShouldSerializeCustomFormat() | Specifies whether to save the value of the CustomFormat property. |
ShouldSerializeEmptyAsNull() | Specifies whether to save the value of the EmptyAsNull 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 |
---|---|
FormatError | Occurs when the control receives data that cannot be formatted according to the current format and edit mask settings. |
Formatting | Formatting the value programmatically. |