Show / Hide Table of Contents

Class GlobalSelectedDatesCollection

Represents a set of selected dates in a GlobalCalendar.

Inheritance
System.Object
System.Collections.ObjectModel.Collection<System.DateTime>
System.Collections.ObjectModel.ObservableCollection<System.DateTime>
GlobalSelectedDatesCollection
Implements
System.Collections.Generic.IList<System.DateTime>
System.Collections.Generic.ICollection<System.DateTime>
System.Collections.Generic.IReadOnlyList<System.DateTime>
System.Collections.Generic.IReadOnlyCollection<System.DateTime>
System.Collections.Generic.IEnumerable<System.DateTime>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.BlockReentrancy()
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.CheckReentrancy()
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.Move(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.MoveItem(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.CollectionChanged
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.PropertyChanged
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.Add(System.DateTime)
System.Collections.ObjectModel.Collection<System.DateTime>.Clear()
System.Collections.ObjectModel.Collection<System.DateTime>.Contains(System.DateTime)
System.Collections.ObjectModel.Collection<System.DateTime>.CopyTo(System.DateTime[], System.Int32)
System.Collections.ObjectModel.Collection<System.DateTime>.GetEnumerator()
System.Collections.ObjectModel.Collection<System.DateTime>.IndexOf(System.DateTime)
System.Collections.ObjectModel.Collection<System.DateTime>.Insert(System.Int32, System.DateTime)
System.Collections.ObjectModel.Collection<System.DateTime>.Remove(System.DateTime)
System.Collections.ObjectModel.Collection<System.DateTime>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<System.DateTime>.Count
System.Collections.ObjectModel.Collection<System.DateTime>.Item[System.Int32]
System.Collections.ObjectModel.Collection<System.DateTime>.Items
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.Generic.ICollection<System.DateTime>.IsReadOnly
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<System.DateTime>.System.Collections.IList.Item[System.Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public sealed class GlobalSelectedDatesCollection : ObservableCollection<DateTime>, IList<DateTime>, ICollection<DateTime>, IReadOnlyList<DateTime>, IReadOnlyCollection<DateTime>, IEnumerable<DateTime>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Constructors

| Improve this Doc View Source

GlobalSelectedDatesCollection(GlobalCalendar)

Initializes a new instance of the GlobalSelectedDatesCollection class.

Declaration
public GlobalSelectedDatesCollection(GlobalCalendar owner)
Parameters
Type Name Description
GlobalCalendar owner

The GlobalCalendar associated with this object.

Methods

| Improve this Doc View Source

AddRange(DateTime, DateTime)

Adds all the dates in the specified range, which includes the first and last dates, to the collection.

Declaration
public void AddRange(DateTime start, DateTime end)
Parameters
Type Name Description
System.DateTime start

The first date to add to the collection.

System.DateTime end

The last date to add to the collection.

| Improve this Doc View Source

ClearItems()

Removes all items from the collection.

Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.ClearItems()
Remarks

This implementation raises the CollectionChanged event.

| Improve this Doc View Source

InsertItem(Int32, DateTime)

Inserts an item into the collection at the specified index.

Declaration
protected override void InsertItem(int index, DateTime item)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which item should be inserted.

System.DateTime item

The object to insert.

Overrides
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.InsertItem(System.Int32, System.DateTime)
Remarks

This implementation raises the CollectionChanged event.

| Improve this Doc View Source

RemoveItem(Int32)

Removes the item at the specified index of the collection.

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to remove.

Overrides
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.RemoveItem(System.Int32)
Remarks

This implementation raises the CollectionChanged event.

| Improve this Doc View Source

SetItem(Int32, DateTime)

Replaces the element at the specified index.

Declaration
protected override void SetItem(int index, DateTime item)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to replace.

System.DateTime item

The new value for the element at the specified index.

Overrides
System.Collections.ObjectModel.ObservableCollection<System.DateTime>.SetItem(System.Int32, System.DateTime)
Remarks

This implementation raises the CollectionChanged event.

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source