Class SelectedDatesCollection
- Namespace
- Avalonia.Controls.Primitives
- Assembly
- Avalonia.Controls.dll
public sealed class SelectedDatesCollection : ObservableCollection<DateTime>, IList<DateTime>, ICollection<DateTime>, IList, ICollection, IReadOnlyList<DateTime>, IReadOnlyCollection<DateTime>, IEnumerable<DateTime>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
- Inheritance
-
SelectedDatesCollection
- Implements
- Inherited Members
Constructors
SelectedDatesCollection(Calendar)
Initializes a new instance of the SelectedDatesCollection class.
public SelectedDatesCollection(Calendar owner)
Parameters
Methods
AddRange(DateTime, DateTime)
Adds all the dates in the specified range, which includes the first and last dates, to the collection.
public void AddRange(DateTime start, DateTime end)
Parameters
start
DateTimeThe first date to add to the collection.
end
DateTimeThe last date to add to the collection.
ClearItems()
Removes all items from the collection.
protected override void ClearItems()
Remarks
This implementation raises the CollectionChanged event.
InsertItem(int, DateTime)
Inserts an item into the collection at the specified index.
protected override void InsertItem(int index, DateTime item)
Parameters
index
intThe zero-based index at which item should be inserted.
item
DateTimeThe object to insert.
Remarks
This implementation raises the CollectionChanged event.
RemoveItem(int)
Removes the item at the specified index of the collection.
protected override void RemoveItem(int index)
Parameters
index
intThe zero-based index of the element to remove.
Remarks
This implementation raises the CollectionChanged event.
SetItem(int, DateTime)
Replaces the element at the specified index.
protected override void SetItem(int index, DateTime item)
Parameters
index
intThe zero-based index of the element to replace.
item
DateTimeThe new value for the element at the specified index.
Remarks
This implementation raises the CollectionChanged event.