Skip to main content

Appointment(DateTime, DateTime) Constructor

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

Namespace: DevExpress.XtraScheduler

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

#Declaration

public Appointment(
    DateTime start,
    DateTime end
)

#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.

end DateTime

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

#Remarks

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

NOTE

The Appointment.Start should be less than or equal to the Appointment.End.

See Also