[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekWorkday

ForceDayOfWeekWorkday Class

Represents the forced workdays of a specific year, which set by day of week rules.

Inheritance
ForceDayOfWeekWorkday
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class ForceDayOfWeekWorkday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable
Public Class ForceDayOfWeekWorkday
    Inherits HolidayBase
    Implements INotifyPropertyChanged, IHoliday, ICloneable
Remarks

The day of week rules includes the months and the weeks and the days in the week defined the days are holidays of this ForceDayOfWeekWorkday. The Force means in a specific year specified by the Year property.

For example, you may defined a ForceDayOfWeekWorkday on the Wednesday of the first week of January, 2009 by specifying the DayOfWeek to Wednesday, WeekInMonth to FirstWeek, Month to January and Year to int.

Constructors

Name Description
ForceDayOfWeekWorkday()

Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules.

ForceDayOfWeekWorkday(int, Months, Weeks, DayOfWeeks)

Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules.

ForceDayOfWeekWorkday(string, int, Months, Weeks, DayOfWeeks)

Initializes a new instance of the ForceDayOfWeekWorkday class with the specified day of week rules.

Properties

Name Description
DayOfWeek

Gets or sets the day of week on which the ForceDayOfWeekWorkday is defined.

HolidayName

Gets or sets the name of the weekday workday.

IsYearly

Determines whether the weekday workday implementation is yearly.

Month

Gets or sets the month in which the ForceDayOfWeekWorkday is defined.

WeekInMonth

Gets or sets the weekday order which the ForceDayOfWeekWorkday is defined.

Year

Gets or sets the year in which the ForceDayOfWeekWorkday is defined.

Methods

Name Description
Clone()

Creates a shallow copy of the ForceDayOfWeekWorkday object.

IsDefined(DateTime)

Gets a value indicating whether the specified date is a ForceDayOfWeekWorkday.

TypeOfDay(DateTime)

Returns the type of day for the specified date.