General Calendar Properties in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - General Calendar Properties
To get Calendar Properties using Aspose.Tasks Java for Ruby, simply invoke CalendarProperties module. Here you can see example code.
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2calendars = project.getCalendars().toList()
3i = 0
4while i < calendars.size()
5 cal = calendars.get(i)
6 if cal.getName() != nil
7 puts "Base Calendar : "
8 if cal.isBaseCalendar()
9 puts "Self"
10 else
11 cal.getBaseCalendar().getName()
12 end
13 puts "UID : " + cal.getUid().to_s
14 puts "Name : " + cal.getName().to_s
15 end
16 i += 1
17end
Download Running Code
Download General Calendar Properties (Aspose.Tasks) from any of the below mentioned social coding sites: