Resource and Calendars
The Resource class exposes the Calendar property which is used to set or get the calendar for a resource. This property accepts and returns an Aspose.Tasks.Calendar object.
Working with Resource Calendars
To define a calendar for a resource in Microsoft Project:
- In the Resource Sheet, double-click the desired resource.
- Click the Change Working Time button.
Setting Resource Calendar using Aspose.Tasks
The following code creates a standard calendar and resource and then assigns the calendar to the resource.
Getting Resource Calendar using Aspose.Tasks
The code below shows how to get resource calendars by traversing a project’s resources.