Skip to main content

CalendarBlackoutDatesCollection Class

Definition​

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public sealed class CalendarBlackoutDatesCollection : ObservableCollection<CalendarDateRange>
View Source
InheritanceObject → Collection(CalendarDateRange) → ObservableCollection(CalendarDateRange) → CalendarBlackoutDatesCollection

Constructors​

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

Properties​

CountGets the number of elements actually contained in the Collection(T).
(Inherited from Collection(CalendarDateRange))
Item(Int32)Gets or sets the element at the specified index.
(Inherited from Collection(CalendarDateRange))

Methods​

Add(T)Adds an object to the end of the Collection(T).
(Inherited from Collection(CalendarDateRange))
AddDatesInPast()Adds all dates before Today to the collection.
Clear()Removes all elements from the Collection(T).
(Inherited from Collection(CalendarDateRange))
Contains(T)Determines whether an element is in the Collection(T).
(Inherited from Collection(CalendarDateRange))
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 Collection(T) to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection(CalendarDateRange))
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator()Returns an enumerator that iterates through the Collection(T).
(Inherited from Collection(CalendarDateRange))
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets 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 Collection(T).
(Inherited from Collection(CalendarDateRange))
Insert(Int32, T)Inserts an element into the Collection(T) at the specified index.
(Inherited from Collection(CalendarDateRange))
Move(Int32, Int32)Moves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollection(CalendarDateRange))
Remove(T)Removes the first occurrence of a specific object from the Collection(T).
(Inherited from Collection(CalendarDateRange))
RemoveAt(Int32)Removes the element at the specified index of the Collection(T).
(Inherited from Collection(CalendarDateRange))
ToString()Returns 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 ObservableCollection(CalendarDateRange))

See Also​

Reference​

Avalonia.Controls.Primitives Namespace