Edit in GitHubLog an issue

Groups

A collection of groups.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Group.


Group add( PageItem groupItems, Layer layer, LocationOptions at, Mixed reference, Object withProperties )

Creates a new Group.

Parameters

TypeNameDescription
PageItem
groupItems
The objects to group.
Layer
layer
The layer on which to create the Group. (Optional)
LocationOptions
at
The location at which to insert the Group relative to the reference object or within the container object. (Optional)
Mixed
reference
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (Optional)
Object
withProperties
Initial values for properties of the new Group (Optional)

Group item( Mixed index )

Returns the Group with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Group itemByName( String name )

Returns the Group with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Group itemByID( Number id )

Returns the Group with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Group itemByRange( Mixed from, Mixed to )

Returns the Groups within the specified range.

Parameters

TypeNameDescription
Mixed
from
The Group, index, or name at the beginning of the range. Can accept: Group, Long Integer or String.
Mixed
to
The Group, index, or name at the end of the range. Can accept: Group, Long Integer or String.

Group firstItem()

Returns the first Group in the collection.


Group lastItem()

Returns the last Group in the collection.


Group middleItem()

Returns the middle Group in the collection.


Group previousItem( Group obj )

Returns the Group with the index previous to the specified index.

Parameters

TypeNameDescription
Group
obj
The index of the Group that follows the desired Group.

Group nextItem( Group obj )

Returns the Group whose index follows the specified Group in the collection.

Parameters

TypeNameDescription
Group
obj
The Group whose index comes before the desired Group.

Group anyItem()

Returns any Group in the collection.


Group everyItem()

Returns every Group in the collection.


String toSource()

Generates a string which, if executed, will return the Group.


Group []( Number index )

Returns the Group with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.