Skip to main content

CalendarDateRange Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public class CalendarDateRange

Inheritance: object -> CalendarDateRange

Constructors

NameDescription
CalendarDateRange (2 overloads)Initializes a new instance of the System.Windows.Controls.CalendarDateRange class with a single date.

CalendarDateRange overloads

CalendarDateRange Constructor

Initializes a new instance of the System.Windows.Controls.CalendarDateRange class with a single date.

public CalendarDateRange(DateTime day)
Parameters

day DateTime

The date to be represented by the range.

CalendarDateRange Constructor

Initializes a new instance of the System.Windows.Controls.CalendarDateRange class with a range of dates.

public CalendarDateRange(DateTime start, DateTime end)
Parameters

start DateTime

The start of the range to be represented.

end DateTime

The end of the range to be represented.

Properties

NameDescription
EndGets the last date in the represented range.
StartGets the first date in the represented range.

End Property

Gets the last date in the represented range.

public DateTime End { get; set; }

Value

The last date in the represented range.

Start Property

Gets the first date in the represented range.

public DateTime Start { get; set; }

Value

The first date in the represented range.