Nevron Open Vision Documentation
Schedule

This topic contains the following sections:
Schedule Structure

The content of a Nevron Schedule document is simply called a schedule. As shown in the Schedule Overview topic, a schedule consists of the following parts:

View Modes

A view mode defines the way appointments are grouped and rendered. A Nevron Schedule has the following view modes:

You can control the active view mode of the schedule through the ViewMode property. Each view can have one or more groupings assigned. These groupings determine the way appointments are arranged inside the schedule view. For more information check out the Grouping Overview and Grouping Appointments topics.

Appointment Tags
The schedule contains a collection of categories and a collection of time markers cumulatively called appointment tags. These tags can be used to categorize appointments and affect their appearance. The categories determine the background fill of the appointment and the time marker determines the fill of the appointment's header. For more information and code examples check out the Appointment Categorization topic.
Zooming

The schedule can easily be zoomed in and out and scrolled in any direction. The easiest way to let the user zoom the schedule is to use the zoom slider that is placed in Nevron Schedule's status bar. The status bar is automatically created by schedule command builders like the NScheduleRibbonBuilder and the NScheduleCommandBarBuilder.

To zoom a schedule programmatically you should modify its ZoomFactor property, where a value of 1 means the schedule is at 100%, 0.8 means the schedule is zoomed to 80%, 1.2 means the schedule is zoomed to 120% and so on. You can also use the ZoomIn() and ZoomOut() methods to zoom the schedule in and out with the value of the ZoomStep property.

Scrolling

To scroll the active view mode of the schedule to a given time, you can use the schedule's ScrollToTime method passing a time span value to scroll to. For example to scroll to 6 AM you can use the following piece of code:

Scroll schedule to a given time
Copy Code
// Scroll the schedule to 6 AM
schedule.ScrollToTime(TimeSpan.FromHours(6));

You can also scroll the schedule by modifying its ViewportOrigin or using the ScrollInDirection(ENCompassDirection direction, double steps) method to scroll it in the given direction. The specified number of steps to scroll are automatically multiplied by the value of the SmallHScrollChange and the SmallVScrollChange properties depending on the scroll direction to determine the amount to scroll the schedule with.

See Also
Send Feedback