[]
        
(Showing Draft Content)

GC.Spread.Sheets.GanttSheet.GanttMapping

Class: GanttMapping

Sheets.GanttSheet.GanttMapping

Table of contents

Constructors

Methods

Constructors

constructor

• new GanttMapping()

Creates the mapping for the GanttSheet

classdesc Represents the mapping of GanttSheet to convert and convert back the task value.

Methods

formatBoolean

▸ formatBoolean(value): string

A helper function that will format a boolean value to string.

Parameters

Name Type Description
value boolean The boolean value to format.

Returns

string


formatDate

▸ formatDate(value, format?, culture?): string

A helper function that will format a Date value to string.

Parameters

Name Type Description
value Date The Date value to format.
format? string -
culture? string -

Returns

string


formatDuration

▸ formatDuration(value): string

A helper function that will format a GC.Spread.Sheets.GanttSheet.Duration value to string.

Parameters

Name Type Description
value Duration The Duration value to format.

Returns

string


formatInt

▸ formatInt(value): string

A helper function that will format a number value to string.

Parameters

Name Type Description
value number The number value to format.

Returns

string


formatMode

▸ formatMode(value): string

A helper function that will format a GC.Spread.Sheets.GanttSheet.TaskScheduleMode value to string.

Parameters

Name Type Description
value TaskScheduleMode The value to format.

Returns

string


parseBoolean

▸ parseBoolean(value): boolean

A helper function that will parse an original value in string or other types to a boolean value.

Parameters

Name Type Description
value any The original value to parse.

Returns

boolean


parseDate

▸ parseDate(value, format?, culture?): Date

A helper function that will parse an original value in string or other types to a Date value.

Parameters

Name Type Description
value any The original value to parse.
format? string -
culture? string -

Returns

Date


parseDuration

▸ parseDuration(value): Duration

A helper function that will parse an original value in string or other types to a GC.Spread.Sheets.GanttSheet.Duration value.

Parameters

Name Type Description
value any The original value to parse.

Returns

Duration


parseInt

▸ parseInt(value): number

A helper function that will parse an original value in string or other types to an integer value.

Parameters

Name Type Description
value any The original value to parse.

Returns

number


parseMode

▸ parseMode(value): TaskScheduleMode

A helper function that will parse an original value in string or other types to a GC.Spread.Sheets.GanttSheet.TaskScheduleMode value.

Parameters

Name Type Description
value any The original value to parse.

Returns

TaskScheduleMode