-
add( |
groupItems [, layer] [, at=LocationOptions.UNKNOWN], reference [, withProperties]) |
→ Group |
-
Creates a new Group.
groupItems
|
Array<PageItem>
The objects to group.
|
layer
|
Layer
The layer on which to create the Group. (Optional)
|
at
|
LocationOptions
The location at which to insert the Group relative to the reference object or within the container object. (Optional)
|
reference
|
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (Optional)
|
withProperties
|
Object
Initial values for properties of the new Group (Optional)
|
-
-
Returns any Group in the collection.
-
-
Displays the number of elements in the Group.
-
-
Returns every Group in the collection.
-
-
Returns the first Group in the collection.
-
-
Returns the Group with the specified index or name.
index
|
The index or name. Can accept: Long Integer or String.
|
-
-
Returns the Group with the specified ID.
-
itemByName( |
name) |
→ Group |
-
Returns the Group with the specified name.
-
itemByRange( |
from, to) |
→ Group |
-
Returns the Groups within the specified range.
from
|
The Group, index, or name at the beginning of the range. Can accept: Group, Long Integer or String.
|
to
|
The Group, index, or name at the end of the range. Can accept: Group, Long Integer or String.
|
-
-
Returns the last Group in the collection.
-
-
Returns the middle Group in the collection.
-
-
Returns the Group whose index follows the specified Group in the collection.
obj
|
Group
The Group whose index comes before the desired Group.
|
-
previousItem( |
obj) |
→ Group |
-
Returns the Group with the index previous to the specified index.
obj
|
Group
The index of the Group that follows the desired Group.
|
-
-
Generates a string which, if executed, will return the Group.