Table of Contents

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

owner Calendar

The Calendar associated with this object.

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 DateTime

The first date to add to the collection.

end DateTime

The 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 int

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

item DateTime

The 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 int

The 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 int

The zero-based index of the element to replace.

item DateTime

The new value for the element at the specified index.

Remarks

This implementation raises the CollectionChanged event.