![]() ![]() Gravitybox WebSchedule.NET
1998-2005 Gravitybox Software LLC
Page 14 of 65
region to be queried. If any part of one or more appointments overlaps any portion of
the defined area, this method returns false. The IsConflict method allows you to
determine if a specified appointment conflicts with any other appointments in the list.
There is an overloaded version of the method that takes two appointment parameters
and compares them to each other and no other appointments. The NextAreaAvailable
method starts at a specified spot on a schedule and returns the next available schedule
area where the specified appointment may be placed outside of any no-drop areas and
which does not conflict with any other appointment in the list.
CategoryList
The CategoryList is very similar to the AppointmentList except that it contains Category
objects. It allows the same set arithmetic as above. However there is little use in this
because there will most likely be few categories in an application and in general
categories are just labels that you will apply to appointments.
ProviderList
The ProviderList has the same functionality as the list described above.
The Visibility Object
Overview
When viewing a schedule, you will need to know what is visible. If a particular date,
time, room, etc is not visible you will want to scroll it into view programmatically. The
Visibility object allows you to query and set display areas of a schedule.
In depth
The Visibility object provides numerous methods to determine if certain aspects of a
schedule are in the viewable area. If you need to ensure that a particular date, time,
room, provider, or appointment is visible then this object is quite useful. Depending on
the viewmode of the schedule you can query the first or total number of columns, rows,
dates, etc.
Visibility Properties
FirstVisibleColumn
Determines the first visible column number. The
valid values are [0..N-1], where N is the total
number of columns. The total number of columns
depends on many factors. If columns are dates,
then the value is the number of days between the
MinDate and MaxDate. If the columns are Rooms
then the value is the number of objects in the
RoomCollection object.
FirstVisibleDate
Determines the first date that is visible on the
schedule. This is the date that is displayed in the
top row of left column, depending on the
viewmode. If the viewmode does not support dates,
|