[]
        
(Showing Draft Content)

GC.Spread.Formatter.GeneralFormatter

Class: GeneralFormatter

Spread.Formatter.GeneralFormatter

Table of contents

Constructors

Methods

Constructors

constructor

new GeneralFormatter(format?, cultureName?)

Represents a formatter with the specified format mode and format string.

Parameters

Name Type
format? string
cultureName? string

Methods

format

format(obj, formattedData?): string

Formats the specified object as a string with a formatted data Object.

Parameters

Name Type Description
obj Object The object with cell data to format.
formattedData? Object -

Returns

string

The formatted string.


formatString

formatString(value?): string | GeneralFormatter

Gets or sets the format string for this formatter.

Parameters

Name Type Description
value? string The format string for this formatter.

Returns

string | GeneralFormatter

If no value is set, returns the formatter string for this formatter; otherwise, returns the formatter.


parse

parse(str): Object

Parses the specified text.

Parameters

Name Type
str string

Returns

Object

The parsed object.