Skip to main content

Appointment(DateTime, TimeSpan) Constructor

Initializes a new instance of the Appointment class with the specified start date and duration.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public Appointment(
    DateTime start,
    TimeSpan duration
)

#Parameters

Name Type Description
start DateTime

A DateTime value that specifies the start date of the appointment. This value is assigned to the Appointment.Start property.

duration TimeSpan

A TimeSpan value that specifies the duration of the appointment. This value is assigned to the Appointment.Duration property.

#Remarks

In this case, the Appointment.Type property is set to AppointmentType.Normal, and the Appointment.Subject is set to Empty.

NOTE

The duration.Ticks should be greater than or equal to 0.

See Also