[]
Represents the formatter object for parsing and formatting values for the general cell type.
[TypeConverter(typeof(GeneralFormatter._a))]
public class GeneralFormatter : IFormatter, ISerializable, ILabelFormatter2, ILabelFormatter, ICloneable
<TypeConverter(GetType(GeneralFormatter._a))>
Public Class GeneralFormatter
Implements IFormatter, ISerializable, ILabelFormatter2, ILabelFormatter, ICloneable
Name | Description |
---|---|
GeneralFormatter() | Creates a new formatter with null FormatString and default NumberFormatInfo |
GeneralFormatter(SerializationInfo, StreamingContext) | Creates a new formatter from serialization. |
GeneralFormatter(string, bool) | Creates a new formatter with the specified format and default formatting information (copied from the current culture). |
GeneralFormatter(string, IFormatProvider) | Creates a new formatter with the specified format and formatting information (copied from the current culture). |
Name | Description |
---|---|
DateTimeFormat | Gets or sets the format for displaying dates and times. |
FormatString | Gets or sets the format string used to format the date value. |
IsDateFormat | Gets whether the format string being used is a date-time format string. |
NumberFormat | Gets or sets the format for displaying currency values. |
Name | Description |
---|---|
Format(object) | Formats the object to a string. |
GetObjectData(SerializationInfo, StreamingContext) | Saves the formatter to the SerializationInfo object. |
Parse(string) | Parses the string to an object and returns the result. |
Parse(string, ref IFormatProvider, ref string) | Parses the string to an object and returns the result. |
SetFormatString(string, bool) | Sets the format string used to format values. |