CalendarBlackoutDatesCollection Class
Definition
public class CalendarBlackoutDatesCollection
Constructors
| Name | Description |
|---|---|
| CalendarBlackoutDatesCollection | Initializes a new instance of the Avalonia.Controls.Primitives.CalendarBlackoutDatesCollection class. |
CalendarBlackoutDatesCollection Constructor
Initializes a new instance of the Avalonia.Controls.Primitives.CalendarBlackoutDatesCollection class.
public CalendarBlackoutDatesCollection(Avalonia.Controls.Calendar owner)
Parameters
owner Avalonia.Controls.Calendar
The Avalonia.Controls.Calendar whose dates this object represents.
Methods
| Name | Description |
|---|---|
| AddDatesInPast | Adds all dates before DateTime.Today to the collection. |
| Contains (2 overloads) | Returns a value that represents whether this collection contains the specified date. |
| ContainsAny | Returns a value that represents whether this collection contains any date in the specified range. |
AddDatesInPast Method
Adds all dates before DateTime.Today to the collection.
public void AddDatesInPast()
Contains overloads
Contains Method
Returns a value that represents whether this collection contains the specified date.
public bool Contains(DateTime date)
Parameters
date DateTime
The date to search for.