[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday

ForceDayOfWeekHoliday Class

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

Inheritance
ForceDayOfWeekHoliday
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class ForceDayOfWeekHoliday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable
Public Class ForceDayOfWeekHoliday
    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 ForceDayOfWeekHoliday. The Force means in a specific year specified by the Year property.

For example, you may defined a ForceDayOfWeekHoliday 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 2009.

Constructors

Name Description
ForceDayOfWeekHoliday()

Initializes a new instance of the ForceDayOfWeekHoliday class.

ForceDayOfWeekHoliday(int, Months, Weeks, DayOfWeeks)

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

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

Initializes a new instance of the ForceDayOfWeekHoliday class with the specific day of week rules.

Properties

Name Description
DayOfWeek

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

HolidayName

Gets or sets the name of the weekday holiday.

IsYearly

Gets a value indicating whether the holiday implementation is yearly.

Month

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

WeekInMonth

Gets or sets the weekday order in which the ForceDayOfWeekHoliday is defined.

Year

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

Methods

Name Description
Clone()

Creates a shallow copy of the ForceDayOfWeekHoliday object.

IsDefined(DateTime)

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

TypeOfDay(DateTime)

Returns the type of day for the specified date.