Prj.Calendar
Prj.Calendar field
The project calendar.
public static readonly Key<Calendar, PrjKey> Calendar;
Examples
Shows how to read/write Prj.Calendar property.
var project = new Project();
var calendar = project.Calendars.Add("Standard");
Calendar.MakeStandardCalendar(calendar);
project.Set(Prj.Calendar, calendar);
Console.WriteLine("Calendar: " + project.Get(Prj.Calendar).Name);
foreach (var weekDay in calendar.WeekDays)
{
Console.WriteLine(weekDay.FromDate);
Console.WriteLine(weekDay.ToDate);
}
See Also
- struct Key<T,K>
- class Calendar
- enum PrjKey
- class Prj
- namespace Aspose.Tasks
- assembly Aspose.Tasks