[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayCollection

HolidayCollection Class

Represents a collection of instances of the GrapeCity.Windows.InputMan.IHoliday, such as GrapeCity.Windows.InputMan.Holiday, GrapeCity.Windows.InputMan.ForceHoliday and GrapeCity.Windows.InputMan.ForceWorkday classes.

Inheritance
HolidayCollection
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class HolidayCollection : NotifyCollection<IHoliday>, IList<IHoliday>, ICollection<IHoliday>, IList, ICollection, IReadOnlyList<IHoliday>, IReadOnlyCollection<IHoliday>, IEnumerable<IHoliday>, IEnumerable, INotifyCollectionChanged
Public Class HolidayCollection
    Inherits NotifyCollection(Of IHoliday)
    Implements IList(Of IHoliday), ICollection(Of IHoliday), IList, ICollection, IReadOnlyList(Of IHoliday), IReadOnlyCollection(Of IHoliday), IEnumerable(Of IHoliday), IEnumerable, INotifyCollectionChanged

Constructors

Name Description
HolidayCollection()

Initializes a new HolidayCollection object.

HolidayCollection(IEnumerable<IHoliday>)

Initializes a new HolidayCollection object using the specified settings.

Methods

Name Description
GetTypeOfDay(DateTime, out IHoliday)

Determines the type of day for the specified date.

InsertItem(int, IHoliday)

Inserts an item into the collection at the specified index.

InsertItems(int, IEnumerable<IHoliday>)

Inserts some items into the collection at the specified index.

IsHoliday(DateTime)

Determines whether the specified date is a holiday.

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the GrapeCity.Windows.InputMan.NotifyCollection<T>.CollectionChanged event with the provided arguments.

RemoveItem(int)

Removes the item at the specified index of the collection.

SetItem(int, IHoliday)

Replaces the element at the specified index.