Nevron Open Vision Documentation
Schedule / Appointments / Appointments
In This Topic
    Appointments
    In This Topic

    Appointments are pieces of data, which are shown in a schedule view. Each appointment has a start and end time, which define its position and size in the schedule. In the schedule view appointments are displayed as appointment widgets, which consist of two parts: header and content. The content is typically a label, which displays the subject of the appointment:

     Properties

    Appointments are represented by the NAppointment class and their most important properties are:

    • Subject - defines the subject of the appointment. This is the text shown in the appointment widget content, as well as a tooltip when the user places the mouse pointer over the appointment widget.
    • Description - the description of the appointment.
    • Category - specifies the category of the appointment.
    • TimeMarker - specifies the time marker of the appointment.
    • Start - specifies the start date and time of the appointment.
    • End - specifies the end date and time of the appointment.
    • StartTimeZone - specifies the time zone of the start of the appointment. By default set to the local time zone.
    • EndTimeZone - specifies the time zone of the end of the appointment. By default set to the local time zone.
    • Groups - defines the groupings of this appointment.
    • RecurrenceRule - defines the recurrence rule of the appointment. If set, Nevron Schedule will automatically create recurring appointment children, also called "occurrences".
     Creating Appointments

    To create an appointment simply use one of the constructors of the NAppointment class and then used the properties mentioned above to configure the appointment. Finally you should add the appointment to the Appointments collection of the schedule:

    Creating an appointment
    Copy Code
    DateTime today = DateTime.Today;
    NAppointment appointment = new NAppointment("Meeting with John", today.AddHours(8), today.AddHours(10));
    appointment.Category = schedule.Categories[0].Name;
    schedule.Appointments.Add(appointment);
    

     

    See Also