The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.
Instance Properties
Name | Description | Access |
---|---|---|
length | number The number of objects in the collection. | read-only |
Methods
count( | ) |
→ number |
itemByName( | name) |
→ PageItem |
itemByRange( | from, to) |
→ PageItem |
middleItem( | ) |
→ PageItem |
previousItem( | obj) |
→ PageItem |
toSource( | ) |
→ string |
-
anyItem( )→ PageItem -
Returns any PageItem in the collection.
-
count( )→ number -
Displays the number of elements in the PageItem.
-
everyItem( )→ PageItem -
Returns every PageItem in the collection.
-
firstItem( )→ PageItem -
Returns the first PageItem in the collection.
-
item( index)→ PageItem -
Returns the PageItem with the specified index or name.
index
The index or name. Can accept: Long Integer or String. -
itemByID( id)→ PageItem -
Returns the PageItem with the specified ID.
id
number The ID. -
itemByName( name)→ PageItem -
Returns the PageItem with the specified name.
name
string The name. -
itemByRange( from, to)→ PageItem -
Returns the PageItems within the specified range.
from
The PageItem, index, or name at the beginning of the range. Can accept: PageItem, Long Integer or String. to
The PageItem, index, or name at the end of the range. Can accept: PageItem, Long Integer or String. -
lastItem( )→ PageItem -
Returns the last PageItem in the collection.
-
middleItem( )→ PageItem -
Returns the middle PageItem in the collection.
-
nextItem( obj)→ PageItem -
Returns the PageItem whose index follows the specified PageItem in the collection.
obj
PageItem The PageItem whose index comes before the desired PageItem. -
previousItem( obj)→ PageItem -
Returns the PageItem with the index previous to the specified index.
obj
PageItem The index of the PageItem that follows the desired PageItem. -
toSource( )→ string -
Generates a string which, if executed, will return the PageItem.