CalendarCollection.ToList
CalendarCollection.ToList method
Converts the CalendarCollection object to a list of Calendar
objects.
public List<Calendar> ToList()
Return Value
List of Calendar
objects.
Examples
Shows how to iterate over calendar collection.
var project = new Project(DataDir + "Project5.mpp");
Console.WriteLine("Number of calendars in the project: " + project.Calendars.Count);
List<Calendar> calendars = project.Calendars.ToList();
foreach (var calendar in calendars)
{
Console.WriteLine("Calendar Name: " + calendar.Name);
}
See Also
- class Calendar
- class CalendarCollection
- namespace Aspose.Tasks
- assembly Aspose.Tasks