[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection.IsHoliday

IsHoliday Method

IsHoliday(DateTime)

Determines whether the specified date is a holiday.

Declaration
public virtual bool IsHoliday(DateTime dateTime)
Public Overridable Function IsHoliday(dateTime As Date) As Boolean
Parameters
Type Name Description
DateTime dateTime

A DateTime value indicates the date.

Returns
Type Description
bool

true if the dateTime is a holiday; otherwise, false.

Remarks

A date is defined as an GrapeCity.Windows.InputMan.IHoliday using the GrapeCity.Windows.InputMan.Holiday or GrapeCity.Windows.InputMan.ForceHoliday class will be treated as a holiday. also, weekday's can be treated as holidays by using the WeeklyHoliday class.