CalendarBlackoutDatesCollection Class

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public sealed class CalendarBlackoutDatesCollection : ObservableCollection<CalendarDateRange>
Inheritance
Object    CollectionCalendarDateRange    ObservableCollectionCalendarDateRange    CalendarBlackoutDatesCollection

Constructors

CalendarBlackoutDatesCollection(Calendar) Initializes a new instance of the CalendarBlackoutDatesCollection class.

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionCalendarDateRange)
ItemInt32Gets or sets the element at the specified index.
(Inherited from CollectionCalendarDateRange)

Methods

Add(T)Adds an object to the end of the CollectionT.
(Inherited from CollectionCalendarDateRange)
AddDatesInPast Adds all dates before Today to the collection.
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionCalendarDateRange)
Contains(T)Determines whether an element is in the CollectionT.
(Inherited from CollectionCalendarDateRange)
Contains(DateTime) Returns a value that represents whether this collection contains the specified date.
Contains(DateTime, DateTime) Returns a value that represents whether this collection contains the specified range of dates.
ContainsAny(CalendarDateRange) Returns a value that represents whether this collection contains any date in the specified range.
CopyTo(T, Int32)Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionCalendarDateRange)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionCalendarDateRange)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(T)Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionCalendarDateRange)
Insert(Int32, T)Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionCalendarDateRange)
Move(Int32, Int32)Moves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionCalendarDateRange)
Remove(T)Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionCalendarDateRange)
RemoveAt(Int32)Removes the element at the specified index of the CollectionT.
(Inherited from CollectionCalendarDateRange)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

CollectionChangedOccurs when an item is added, removed, or moved, or the entire list is refreshed.
(Inherited from ObservableCollectionCalendarDateRange)

See Also