Skip to main content

SelectedDatesCollection Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia
public class SelectedDatesCollection

Inheritance: ObservableCollection<DateTime> -> SelectedDatesCollection

Constructors​

NameDescription
SelectedDatesCollectionInitializes a new instance of the Avalonia.Controls.Primitives.SelectedDatesCollection class.

SelectedDatesCollection Constructor​

Initializes a new instance of the Avalonia.Controls.Primitives.SelectedDatesCollection class.

public SelectedDatesCollection(Avalonia.Controls.Calendar owner)

Parameters​

owner Avalonia.Controls.Calendar

The Avalonia.Controls.Calendar associated with this object.

Methods​

NameDescription
AddRangeAdds all the dates in the specified range, which includes the first and last dates, to the collection.

AddRange Method​

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.