![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 106
1998-2004 Gravitybox Software LLC
Clusters
There is a way to group appointments without creating a recurrence pattern. When two
or more appointments have the same GroupId they are displayed with a small
recurrence icon next to each of them. This defines the group. However there are times
when you may wish to logically group or cluster appointments without showing any
icons relating to the cluster. To provide this functionality, each appointment has a
ClusterId property that has an initially unique value. You may change this to any value
you wish. If you give the same key to more than one appointment, these appointments
are said to be in a cluster. The ScheduleItems collection has a RemoveCluster method
that may be invoked to remove a cluster of appointments at the same time. This
eliminates the cumbersome operation of looping through the ScheduleItems collection
and removing each individually. Also a Schedule object has a GetClustered method
that will return a collection of appointment indexes of appointments with the specified
ClusterId. This is useful to get a collection of indexes that may be used to access the
individual appointment objects in the ScheduleItems collection.
|