Class GlobalCalendarBlackoutDatesCollection
Inheritance
System.Object
GlobalCalendarBlackoutDatesCollection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.BlockReentrancy()
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.CheckReentrancy()
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.Move(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.MoveItem(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.CollectionChanged
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.PropertyChanged
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Add(System.Windows.Controls.CalendarDateRange)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Clear()
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Contains(System.Windows.Controls.CalendarDateRange)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.CopyTo(System.Windows.Controls.CalendarDateRange[], System.Int32)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.GetEnumerator()
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.IndexOf(System.Windows.Controls.CalendarDateRange)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Insert(System.Int32, System.Windows.Controls.CalendarDateRange)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Remove(System.Windows.Controls.CalendarDateRange)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Count
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Item[System.Int32]
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.Items
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.Generic.ICollection<System.Windows.Controls.CalendarDateRange>.IsReadOnly
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<System.Windows.Controls.CalendarDateRange>.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()
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public sealed class GlobalCalendarBlackoutDatesCollection : ObservableCollection<CalendarDateRange>, IList<CalendarDateRange>, ICollection<CalendarDateRange>, IReadOnlyList<CalendarDateRange>, IReadOnlyCollection<CalendarDateRange>, IEnumerable<CalendarDateRange>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Constructors
|
Improve this Doc
View Source
GlobalCalendarBlackoutDatesCollection(GlobalCalendar)
Declaration
public GlobalCalendarBlackoutDatesCollection(GlobalCalendar owner)
Parameters
Methods
|
Improve this Doc
View Source
AddDatesInPast()
Adds all dates before System.DateTime.Today to the
collection.
Declaration
public void AddDatesInPast()
|
Improve this Doc
View Source
ClearItems()
Removes all items from the collection.
Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.ClearItems()
|
Improve this Doc
View Source
Contains(DateTime)
Returns a value that represents whether this collection contains the
specified date.
Declaration
public bool Contains(DateTime date)
Parameters
Type |
Name |
Description |
System.DateTime |
date |
The date to search for.
|
Returns
Type |
Description |
System.Boolean |
True if the collection contains the specified date; otherwise,
false.
|
|
Improve this Doc
View Source
Contains(DateTime, DateTime)
Returns a value that represents whether this collection contains the
specified range of dates.
Declaration
public bool Contains(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
The start of the date range.
|
System.DateTime |
end |
The end of the date range.
|
Returns
Type |
Description |
System.Boolean |
True if all dates in the range are contained in the collection;
otherwise, false.
|
|
Improve this Doc
View Source
ContainsAny(CalendarDateRange)
Returns a value that represents whether this collection contains any
date in the specified range.
Declaration
public bool ContainsAny(CalendarDateRange range)
Parameters
Returns
Type |
Description |
System.Boolean |
True if any date in the range is contained in the collection;
otherwise, false.
|
|
Improve this Doc
View Source
InsertItem(Int32, CalendarDateRange)
Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, CalendarDateRange item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index at which item should be inserted.
|
CalendarDateRange |
item |
The object to insert.
|
Overrides
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.InsertItem(System.Int32, System.Windows.Controls.CalendarDateRange)
|
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.Windows.Controls.CalendarDateRange>.RemoveItem(System.Int32)
|
Improve this Doc
View Source
SetItem(Int32, CalendarDateRange)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, CalendarDateRange item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The zero-based index of the element to replace.
|
CalendarDateRange |
item |
The new value for the element at the specified index.
|
Overrides
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.CalendarDateRange>.SetItem(System.Int32, System.Windows.Controls.CalendarDateRange)
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