[]
        
(Showing Draft Content)

FarPoint.Web.Spread.Model.GeneralFormatter.-ctor

GeneralFormatter Constructor

GeneralFormatter()

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

Declaration
public GeneralFormatter()
Public Sub New()

GeneralFormatter(string, bool)

Creates a new formatter with the specified format and default formatting information (copied from the current culture).

Declaration
public GeneralFormatter(string formatString, bool isDateFormat)
Public Sub New(formatString As String, isDateFormat As Boolean)
Parameters
Type Name Description
string formatString

String with format information

bool isDateFormat

Whether to consider the number as a date and format it as such

GeneralFormatter(string, IFormatProvider)

Creates a new formatter with the specified format and formatting information (copied from the current culture).

Declaration
public GeneralFormatter(string formatString, IFormatProvider formatInfo)
Public Sub New(formatString As String, formatInfo As IFormatProvider)
Parameters
Type Name Description
string formatString

String with format information

IFormatProvider formatInfo

IFormatProvider interface with number and date-time format information

GeneralFormatter(SerializationInfo, StreamingContext)

Creates a new formatter from serialization.

Declaration
protected GeneralFormatter(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

SerializationInfo

StreamingContext context

StreamingContext