Skip to main content

IAppointmentFactory.CreateAppointment(AppointmentType) Method

Creates an object with the Appointment interface.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

Appointment CreateAppointment(
    AppointmentType type
)

Parameters

Name Type Description
type AppointmentType

A AppointmentType enumeration member specifying the appointment type.

Returns

Type Description
Appointment

An object which implements the Appointment interface.

Remarks

Tip

You can create a custom class with the IAppointmentFactory interface, implement the CreateAppointment method and set a custom class as the default appointment factory using the IAppointmentStorageBase.SetAppointmentFactory method. It enables you to substitute native Scheduler appointments with custom Appointment objects.

See Also