[]
Represents the formatter object for parsing and formatting values for the general cell type.
public class GeneralFormatter : ISerializable, IEnhancedFormatter, ILabelFormatter, IFormatter
Public Class GeneralFormatter
Implements ISerializable, IEnhancedFormatter, ILabelFormatter, IFormatter
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. |
SetFormatString(string, bool) | Sets the format string used to format values. |