[]
Represents a collection of instances of the Holiday, ForceHoliday, and ForceWorkday classes supported by the holiday collection manager.
[TypeConverter(typeof(HolidayCollectionConverter))]
public class HolidayCollection : NotifyCollection, IList, ICollection, IEnumerable
<TypeConverter(GetType(HolidayCollectionConverter))>
Public Class HolidayCollection
Inherits NotifyCollection
Implements IList, ICollection, IEnumerable
Name | Description |
---|---|
HolidayCollection() | Initializes a new HolidayCollection object. |
HolidayCollection(IHoliday[], Weekdays) | Initializes a new HolidayCollection object using the specified settings (not recommended for outer usage). |
HolidayCollection(Weekdays) | Initializes a new HolidayCollection object. |
Name | Description |
---|---|
this[int] | Gets a IHoliday specified by its index. |
Weekdays | Gets or sets the policy object for the individual holidays. |
Name | Description |
---|---|
Add(IHoliday) | Adds the specified holiday to the collection. |
AddRange(IHoliday[]) | Copies the elements of the specified IHoliday array to the end of the collection. |
Contains(IHoliday) | Returns a value that indicates whether the specified IHoliday is a member of the HolidayCollection. |
CopyTo(IHoliday[], int) | Copies the entire HolidayCollection to a compatible one-dimensional array of type IHoliday, starting at the specified zero-based index of the target array. |
GetTypeOfDay(DateTime, out object) | Determines the type of day for the specified date. |
IndexOf(IHoliday) | Searches for the specified IHoliday and returns the zero-based index of the first occurrence within the collection. |
Insert(int, IHoliday) | Inserts a holiday object in the collection. |
IsHoliday(DateTime) | Determines whether the specified date is a holiday. |
IsOverridden(DateTime) | Determines whether the specified date is an overridden holiday. |
OnClear() | Performs additional custom processes after clearing the contents of the HolidayCollection instance. |
OnInsertComplete(int, object) | Performs additional custom processes after inserting a new element into the HolidayCollection instance. |
OnRemoveComplete(int, object) | Performs additional custom processes after removing an element from the HolidayCollection instance. |
Remove(IHoliday) | Removes the first occurrence of the specified IHoliday from the HolidayCollection. |