Skip to main content

WorkDaysCollection Methods

Represents a collection of dates, for which the information regarding a working activity is known.
Name Description
Add(T) Adds the specified object to the collection. Inherited from DXCollectionBase<T>.
Add(WeekDays) Adds an item to the WorkDaysCollection if the collection does not contain the specified item.
AddHoliday(DateTime, String) Creates and adds a Holiday class instance to the WorkDaysCollection if the collection does not contain the specified item.
AddRange(ICollection) Adds a collection of objects to the end of the current collection. Inherited from NotificationCollection<T>.
Assign(WorkDaysCollection) Copies all the settings from the WorkDaysCollection object passed as a parameter.
BeginUpdate() Locks the NotificationCollection<T>, preventing change notifications (and visual updates) from being raised by the object until the EndUpdate or CancelUpdate method is called. Inherited from NotificationCollection<T>.
CancelUpdate() Unlocks the NotificationCollection<T> object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from NotificationCollection<T>.
Clear() Removes all objects from the DXCollectionBase<T> instance. Inherited from DXCollectionBase<T>.
Clone() Creates a copy of the current WorkDaysCollection object.
Contains(T) Determines whether the collection contains the specified item. Inherited from DXCollectionBase<T>.
CopyTo(T[], Int32) Copies all the elements from the DXCollectionBase<T> instance to a one-dimensional array, starting at the specified index of the target array. Inherited from DXCollectionBase<T>.
EndUpdate() Unlocks the NotificationCollection<T> object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from NotificationCollection<T>.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Find(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire DXCollectionBase<T>. Inherited from DXCollectionBase<T>.
ForEach(Action<T>) Performs the specified action on each element of the DXCollectionBase<T>. Inherited from DXCollectionBase<T>.
GetEnumerator() Returns an enumerator that iterates through the DXCollectionBase<T> instance. Inherited from DXCollectionBase<T>.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
GetWeekDays() Returns a WeekDays enumeration, corresponding to work days in the collection.
IndexOf(T) Returns the zero-based index of the specified element in the collection. Inherited from DXCollectionBase<T>.
Insert(Int32, T) Inserts the specified element into the collection at the specified position. Inherited from DXCollectionBase<T>.
IsHoliday(DateTime) Determines whether the specified date is treated as a holiday.
IsWorkDay(DateTime) Determines whether the specified date is treated as a work day.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(T) Removes the specified element from the collection. Inherited from DXCollectionBase<T>.
RemoveAt(Int32) Removes the element at the specified index of the DXCollectionBase<T> instance. Inherited from DXCollectionBase<T>.
Sort(IComparer<T>) Sorts the elements in the entire DXCollectionBase<T> using the specified comparer. Inherited from DXCollectionBase<T>.
ToArray() Copies the DXCollectionBase<T> elements to a new array. Inherited from DXCollectionBase<T>.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also