Editar

Partilhar via


CalendarDateRange Constructors

Definition

Initializes a new instance of the CalendarDateRange class.

Overloads

CalendarDateRange()

Initializes a new instance of the CalendarDateRange class.

CalendarDateRange(DateTime)

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

CalendarDateRange(DateTime, DateTime)

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

CalendarDateRange()

Initializes a new instance of the CalendarDateRange class.

public:
 CalendarDateRange();
public CalendarDateRange ();
Public Sub New ()

Applies to

CalendarDateRange(DateTime)

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

public:
 CalendarDateRange(DateTime day);
public CalendarDateRange (DateTime day);
new System.Windows.Controls.CalendarDateRange : DateTime -> System.Windows.Controls.CalendarDateRange
Public Sub New (day As DateTime)

Parameters

day
DateTime

The date to add.

Applies to

CalendarDateRange(DateTime, DateTime)

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

public:
 CalendarDateRange(DateTime start, DateTime end);
public CalendarDateRange (DateTime start, DateTime end);
new System.Windows.Controls.CalendarDateRange : DateTime * DateTime -> System.Windows.Controls.CalendarDateRange
Public Sub New (start As DateTime, end As DateTime)

Parameters

start
DateTime

The start of the range to be represented.

end
DateTime

The end of the range to be represented.

Applies to