[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekHoliday

DayOfWeekHoliday Class

Represents the yearly holidays set by the day of the week rules.

Inheritance
DayOfWeekHoliday
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class DayOfWeekHoliday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable
Public Class DayOfWeekHoliday
    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 DayOfWeekHoliday.

For example, you may defined a DayOfWeekHoliday on the Wednesday of the first week of January by specifying the DayOfWeek to Wednesday, WeekInMonth to FirstWeek, Month to January.

Constructors

Name Description
DayOfWeekHoliday()

Initializes a new instance of the DayOfWeekHoliday class.

DayOfWeekHoliday(Months, Weeks, DayOfWeeks)

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

DayOfWeekHoliday(string, Months, Weeks, DayOfWeeks)

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

Properties

Name Description
DayOfWeek

Gets or sets the day of week on which the DayOfWeekHoliday 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 DayOfWeekHoliday is defined.

WeekInMonth

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

Methods

Name Description
Clone()

Creates a shallow copy of the DayOfWeekHoliday object.

IsDefined(DateTime)

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

TypeOfDay(DateTime)

Returns the type of day for the specified date.