Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.8 Assembly / C1.Win.C1Schedule Namespace / C1Schedule Class / BeforeAppointmentCreate Event

In This Topic
    BeforeAppointmentCreate Event (C1Schedule)
    In This Topic
    Occurs immediately before the new C1.C1Schedule.Appointment object is created.
    Syntax
    'Declaration
     
    Public Event BeforeAppointmentCreate As CancelAppointmentEventHandler
    public event CancelAppointmentEventHandler BeforeAppointmentCreate
    Event Data

    The event handler receives an argument of type CancelAppointmentEventArgs containing data related to this event. The following CancelAppointmentEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the Appointment object which the event was raised for.  
    (Inherited from System.ComponentModel.CancelEventArgs)
    Remarks

    CancelAppointmentEventArgs for this event is initialized according to the currently selected view and date. For example:

    • If there are some selected slots in the DayView, then Start and End properties will be initialized accordingly.
    • If there is a selected day in a WeekView or in a MonthView, the AllDayEvent property will be set to true.

    Use this event to prevent the appointment creation or to fill-in some additional appointment properties.

    See Also