CalendarBlackoutDatesCollection Class

Namespace
Avalonia.Controls.Primitives
Base Types
graph BT Type-->Base0["ObservableCollection<CalendarDateRange>"] Type["CalendarBlackoutDatesCollection"] class Type type-node

Syntax

public sealed class CalendarBlackoutDatesCollection : ObservableCollection<CalendarDateRange>

Constructors

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

Methods

Name Value Summary
AddDatesInPast() void
Adds all dates before System.DateTime.Today to the collection.
ClearItems() void
Removes all items from the collection.
Contains(DateTime) bool
Returns a value that represents whether this collection contains the specified date.
Contains(DateTime, DateTime) bool
Returns a value that represents whether this collection contains the specified range of dates.
ContainsAny(CalendarDateRange) bool
Returns a value that represents whether this collection contains any date in the specified range.
InsertItem(int, CalendarDateRange) void
Inserts an item into the collection at the specified index.
RemoveItem(int) void
Removes the item at the specified index of the collection.
SetItem(int, CalendarDateRange) void
Replaces the element at the specified index.