Skip to main content
A newer version of this page is available. .

AppointmentStorage.IsNewAppointment(Appointment) Method

Determines whether the appointment is new, so that it is not an occurrence, and the current AppointmentStorage does not contain it.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public bool IsNewAppointment(
    Appointment apt
)

Parameters

Name Type Description
apt Appointment

An Appointment object that is the appointment in question.

Returns

Type Description
Boolean

true, if the appointment isn’t contained in this storage and in recurrent series of appointments in the storage; otherwise, false.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

This method returns the value according to the following conditions.

Condition Return Value
The appointment is contained in this AppointmentStorage. False
The appointment’s type is AppointmentType.Occurrence. False
The appointment is an exception (can be obtained using the Appointment.GetExceptions method). Call the IsNewAppointment method for the exception’s pattern.
Otherwise. True
See Also