Skip to main content

WeekIntervalCollection Members

A collection that contains time intervals of a fixed one week duration.

Constructors

Name Description
WeekIntervalCollection() Initializes a new instance of the WeekIntervalCollection class with the default settings.

Properties

Name Description
Capacity Gets or sets the number of elements that the DXCollectionBase<T> can contain. Inherited from DXCollectionBase<T>.
CompressWeekend Gets or sets a value which specifies whether the weekend days (Saturday and Sunday) should always persist in the collection together.
Count Gets the number of elements contained in the DXCollectionBase<T> instance. Inherited from DXCollectionBase<T>.
Duration Returns the difference between the earliest and the latest time of the intervals in a time interval collection. Inherited from TimeIntervalCollection.
End Gets the end date time of the time interval which finishes last in the TimeIntervalCollection. Inherited from TimeIntervalCollection.
FirstDayOfWeek Gets or sets the day which will be the first day of the week for the week interval collection.
Interval Returns a TimeInterval object representing a time span of the time interval collection. Inherited from TimeIntervalCollection.
IsUpdateLocked Gets whether the collection has been locked for updating. Inherited from NotificationCollection<T>.
Item[Int32] Provides indexed access to individual items in the collection. Inherited from DXCollection<T>.
Start Gets the earliest start date time from all the time intervals in the TimeIntervalCollection. Inherited from TimeIntervalCollection.
UniquenessProviderType Gets or sets the type of an object, which provides uniqueness for the current DXCollectionBase<T>. Inherited from DXCollectionBase<T>.

Methods

Name Description
Add(TimeInterval) Adds an item to the TimeIntervalCollection Inherited from TimeIntervalCollection.
AddRange(ICollection) Adds all items from the specified collection of intervals to the TimeIntervalCollection. Inherited from TimeIntervalCollection.
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 TimeIntervalCollection object. Inherited from TimeIntervalCollection.
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.
Insert(Int32, T) Inserts the specified element into the collection at the specified position. Inherited from DXCollectionBase<T>.
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.
RemoveAt(Int32) Removes the element at the specified index of the DXCollectionBase<T> instance. Inherited from DXCollectionBase<T>.
SetContent(TimeInterval) Substitutes collection’s content with the specified TimeInterval object. Inherited from TimeIntervalCollection.
SetContent(TimeIntervalCollection) Substitutes collection’s content with objects from the specified TimeIntervalCollection. Inherited from TimeIntervalCollection.
Shift(TimeSpan) Shifts the start and end time of all the time intervals within the collection by the specified amount. Inherited from TimeIntervalCollection.
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.

Events

Name Description
CollectionChanged Occurs when the collection is changed. Inherited from NotificationCollection<T>.
CollectionChanging This event occurs when the collection is about to change. Inherited from NotificationCollection<T>.
See Also