Edit in GitHubLog an issue

PageReferences

A collection of index page references.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

PageReference add( Text source, PageReferenceType pageReferenceType, Mixed pageReferenceLimit, CharacterStyle pageNumberStyleOverride, Object withProperties )

Creates a new page reference.

Parameters

TypeNameDescription
Text
source
The text or insertion point to which the page reference points.
PageReferenceType
pageReferenceType
The page number for an index page reference or the last page in an index page reference page range. (Optional)
Mixed
pageReferenceLimit
The paragraph style or number of paragraphs or pages that defines the last page in a page range. Valid only when page reference type specifies the next use of a paragraph style or a number of paragraphs or pages. . Can accept: ParagraphStyle or Long Integer. (Optional)
CharacterStyle
pageNumberStyleOverride
The style override for the page number. (Optional)
Object
withProperties
Initial values for properties of the new PageReference (Optional)

Number count()

Displays the number of elements in the PageReference.


PageReference item( Mixed index )

Returns the PageReference with the specified index or name.

Parameters

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

PageReference itemByName( String name )

Returns the PageReference with the specified name.

Parameters

TypeNameDescription
String
name
The name.

PageReference itemByID( Number id )

Returns the PageReference with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

PageReference itemByRange( Mixed from, Mixed to )

Returns the PageReferences within the specified range.

Parameters

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

PageReference firstItem()

Returns the first PageReference in the collection.


PageReference lastItem()

Returns the last PageReference in the collection.


PageReference middleItem()

Returns the middle PageReference in the collection.


PageReference previousItem( PageReference obj )

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

Parameters

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

PageReference nextItem( PageReference obj )

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

Parameters

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

PageReference anyItem()

Returns any PageReference in the collection.


PageReference everyItem()

Returns every PageReference in the collection.


String toSource()

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


PageReference []( Number index )

Returns the PageReference 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.