Back to Devexpress

AppointmentDataStorage.IsNewAppointment(Appointment) Method

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentdatastorage-dot-isnewappointment-x28-devexpress-dot-xtrascheduler-dot-appointment-x29.md

latest2.3 KB
Original Source

AppointmentDataStorage.IsNewAppointment(Appointment) Method

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public bool IsNewAppointment(
    Appointment appointment
)
vb
Public Function IsNewAppointment(
    appointment As Appointment
) As Boolean

Parameters

NameType
appointmentAppointment

Returns

Type
Boolean

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsNewAppointment(Appointment) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L80

csharp
SchedulerDataStorage storage = control.DataStorage as SchedulerDataStorage;
if (storage.Appointments.IsNewAppointment(appointment)) {
    edtSubject.SelectionLength = 0;

See Also

AppointmentDataStorage Class

AppointmentDataStorage Members

DevExpress.XtraScheduler Namespace