[]
        
(Showing Draft Content)

GC.Spread.Sheets.GanttSheet.CustomWorkWeek

Class: CustomWorkWeek

Sheets.GanttSheet.CustomWorkWeek

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CustomWorkWeek(workDays, start, finish)

Creates a new week with the specified work times of each day for a custom date range.

classdesc Represents the a week in calender, which defines the work times of each day.

Parameters

Name Type Description
workDays WorkDay[] A workday array with 7 items from Sunday to Saturday, specifies the work times of each day in a week.
start Date A date specifies the start of the date range to apply this week definition in calendar.
finish Date A date specifies the finish of the date range to apply this week definition in calendar.

Overrides

WorkWeek.constructor

Properties

finish

finish: Date

Gets or sets the finish date for this custom work week.


start

start: Date

Gets or sets the start date for this custom work week.

Methods

getWorkDay

getWorkDay(index): WorkDay

Gets the work times for the specified day in the week.

Parameters

Name Type Description
index number A number from 0 to 6, or a DayOfWeek value indicates the day.

Returns

WorkDay

The work times for the specified day.

Inherited from

WorkWeek.getWorkDay