Add Method
Description
Adds a CalendarResource to the collection of resources.
Syntax
Public Sub Add( _
ByVal *pResource* As [CalendarResource](XtremeCalendarControl~CalendarResource.md) _
)
Parameters
- pResource: Reference to the new CalendarResource to be added to the collection of resources.
Remarks
Notes:
A CalendarResource represents a calendar for some subject like a person, a shared resource, or even a group of persons or resources.
Each resource is to be drawn in a separate column (CalendarViewGroup) on the calendar view. Each resource should have its own DataProvider. For example, events for people could be stored inside the Memory data provider (somebody's own or temporary events), and for other resources - inside a Database data provider (those events are not changed by the user). So, there is a possibility to use any combination of data providers in the same control.
When in day view, each calendar day contains one or more CalendarViewGroup objects. Each group displays all the CalendarSchedule objects contained in the CalendarResources for the CalendarViewGroup. For example, ScheduleID could contain the employee number, which is used to identify the schedule this event belongs to.
See Also
- CalendarResources Collection
- Collection of Resources
- Remove Method
- RemoveAll Method
- Count Property
- CalendarResource Object
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.