Edit in GitHubLog an issue

ParagraphDestinations

A collection of paragraph destinations.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

ParagraphDestination add( Text destination, Object withProperties )

Creates a new paragraph destination.

Parameters

TypeNameDescription
Text
destination
The text or insertion point inside the paragraph that the cross reference points to. The insertion point is always adjusted to the beginning of the paragraph.
Object
withProperties
Initial values for properties of the new ParagraphDestination (Optional)

Number count()

Displays the number of elements in the ParagraphDestination.


ParagraphDestination item( Mixed index )

Returns the ParagraphDestination with the specified index or name.

Parameters

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

ParagraphDestination itemByName( String name )

Returns the ParagraphDestination with the specified name.

Parameters

TypeNameDescription
String
name
The name.

ParagraphDestination itemByID( Number id )

Returns the ParagraphDestination with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

ParagraphDestination itemByRange( Mixed from, Mixed to )

Returns the ParagraphDestinations within the specified range.

Parameters

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

ParagraphDestination firstItem()

Returns the first ParagraphDestination in the collection.


ParagraphDestination lastItem()

Returns the last ParagraphDestination in the collection.


ParagraphDestination middleItem()

Returns the middle ParagraphDestination in the collection.


ParagraphDestination previousItem( ParagraphDestination obj )

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

Parameters

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

ParagraphDestination nextItem( ParagraphDestination obj )

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

Parameters

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

ParagraphDestination anyItem()

Returns any ParagraphDestination in the collection.


ParagraphDestination everyItem()

Returns every ParagraphDestination in the collection.


String toSource()

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


ParagraphDestination []( Number index )

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