Ruby -Programmierhandbuch
Contents
[
Hide
Show
]** asspos
Rufen Sie Get_Outline_Properties Methode von tasksProperties Modul an get_outline_properties methode auf, um die Eigenschaften von Aspose.Tasks Java für Ruby zu erhalten. Hier sehen Sie Beispielcode.
Rubincode
1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
2
3Collector = RJB :: Import ('com.asispsis.tasks.ChildtasScollector'). Neu
4
5Rjb :: import ('com.asispsis.tasks.taskutils'). Bewerben (project.getroottask (), Sammler, 0)
6
7tasks = collector.gettasks ()
8
9tsk = rjb :: import ('com.aspsient.tasks.tsk'))
10
11I = 0
12
13während ich <tasks.size () <tasks.size ()
14
15 task = tasks.get(i)
16
17 puts "Outline Level: " + task.get(tsk.OUTLINE_LEVEL).to_string
18
19 puts "Outline Number: " + task.get(tsk.OUTLINE_NUMBER).to_string
20
21 puts "---------------------------------------------"
22
23 i += 1
24
25Ende
Download Running Code
Download Allgemeine Eigenschaften (Aspose.Tasks) von einer der folgenden sozialen Codierungs -Websites: