[]
        
(Showing Draft Content)

FarPoint.Web.Spread.Model.GeneralFormatter

GeneralFormatter Class

Represents the formatter object for parsing and formatting values for the general cell type.

Inheritance
GeneralFormatter
Namespace: FarPoint.Web.Spread.Model
Assembly: FarPoint.Web.Spread.dll
Syntax
public class GeneralFormatter : ISerializable, IEnhancedFormatter, ILabelFormatter, IFormatter
Public Class GeneralFormatter
    Implements ISerializable, IEnhancedFormatter, ILabelFormatter, IFormatter

Constructors

Name Description
GeneralFormatter()

Creates a new formatter with null FormatString and default NumberFormatInfo
and DateTimeFormatInfo (copied from the current culture).

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).

Properties

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.

Methods

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.