You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/item/itemcollection.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@
4
4
5
5
#### Description
6
6
7
-
The ItemCollection object represents a collection of items. The ItemCollection belonging to a [Project object](../general/project.md) contains all the Item objects for items in the project. The ItemCollection belonging to a FolderItem object contains all the Item objects for items in that folder.
7
+
The ItemCollection object represents a collection of [Items](../item/item.md).
8
+
9
+
The ItemCollection belonging to a [Project object](../general/project.md) contains all the Item objects for [items in the project](../general/project.md#projectitems).
10
+
11
+
The ItemCollection belonging to a [FolderItem object](../item/folderitem.md) contains all the Item objects for [items in that folder](../item/folderitem.md#folderitemitems).
8
12
9
13
!!! info
10
14
ItemCollection is a subclass of [Collection object](../other/collection.md). All methods and attributes of Collection, in addition to those listed below, are available when working with ItemCollection.
@@ -19,7 +23,11 @@ The ItemCollection object represents a collection of items. The ItemCollection b
19
23
20
24
#### Description
21
25
22
-
Creates a new composition. Creates and returns a new CompItem object and adds it to this collection. If the ItemCollection belongs to the project or the root folder, then the new item's `parentFolder` is the root folder. If the ItemCollection belongs to any other folder, the new item's `parentFolder` is that `FolderItem`.
26
+
Creates and returns a new [CompItem object](../item/compitem.md) and adds it to this collection.
27
+
28
+
If the ItemCollection belongs to the project or the root folder, then the new item's [`parentFolder`](../item/item.md#itemparentfolder) is the [root folder](../general/project.md#projectrootfolder).
29
+
30
+
If the ItemCollection belongs to any other folder, the new item's `parentFolder` is that [FolderItem](../item/folderitem.md).
23
31
24
32
#### Parameters
25
33
@@ -34,7 +42,7 @@ Creates a new composition. Creates and returns a new CompItem object and adds it
34
42
35
43
#### Returns
36
44
37
-
CompItem object.
45
+
[CompItem object](../item/compitem.md)
38
46
39
47
---
40
48
@@ -44,7 +52,11 @@ CompItem object.
44
52
45
53
#### Description
46
54
47
-
Creates a new folder. Creates and returns a new FolderItem object and adds it to this collection. If the ItemCollection belongs to the project or the root folder, then the new folder's `parentFolder` is the root folder. If the ItemCollection belongs to any other folder, the new folder's `parentFolder` is that `FolderItem`. To put items in the folder, set the [Item.parentFolder](item.md#itemparentfolder) attribute
55
+
Creates and returns a new [FolderItem object](../item/folderitem.md) and adds it to this collection.
56
+
57
+
If the ItemCollection belongs to the [project](../general/project.md#projectitems) or the [root folder](../general/project.md#projectrootfolder), then the new folder's `parentFolder` is the root folder.
58
+
59
+
If the ItemCollection belongs to any other folder, the new folder's `parentFolder` is that FolderItem. To put items in the folder, set the [Item.parentFolder](item.md#itemparentfolder) attribute.
48
60
49
61
#### Parameters
50
62
@@ -54,11 +66,11 @@ Creates a new folder. Creates and returns a new FolderItem object and adds it to
54
66
55
67
#### Returns
56
68
57
-
FolderItem object.
69
+
[FolderItem object](../item/folderitem.md).
58
70
59
71
#### Example
60
72
61
-
This script creates a new FolderItem in the Project panel and moves compositions into it.
73
+
This script creates a new [FolderItem](../item/folderitem.md) in the Project panel and moves compositions into it.
62
74
63
75
```javascript
64
76
//create a new FolderItem in project, with name "comps"
0 commit comments