Skip to main content

AppointmentStatus.CreateInstance(AppointmentStatusType) Method

Creates a new instance of the AppointmentStatus class and initializes it with the specified type.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public static AppointmentStatus CreateInstance(
    AppointmentStatusType type
)

#Parameters

Name Type Description
type AppointmentStatusType

A AppointmentStatusType enumeration value that specifies the type of the appointment status. This value is assigned to the AppointmentStatusBase.Type property.

#Returns

Type Description
AppointmentStatus

An AppointmentStatus object of the specified type.

#Remarks

Use the CreateInstance method to create an appointment status of a standard type. It sets the AppointmentStatus.Color, UserInterfaceObject.DisplayName and UserInterfaceObject.MenuCaption properties to the initial values corresponding to the specified type. To create a custom appointment status, use the AppointmentStatus constructor.

See Also