Paragraphs

A collection of paragraphs.

Methods:

anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Paragraph anyItem ()

Returns any Paragraph in the collection.

Number count ()

Displays the number of elements in the Paragraph.

Paragraph everyItem ()

Returns every Paragraph in the collection.

Paragraph firstItem ()

Returns the first Paragraph in the collection.

Paragraph item (index:Varies Long String)

Returns the Paragraph with the specified index or name.

Parameter

Type

Description

index

Long

String

The index or name. Can accept: Long or String.

Paragraph itemByName (name:String)

Returns the Paragraph with the specified name.

Parameter

Type

Description

name

String

The name.

Paragraph itemByRange (from:Varies Long Paragraph String, to:Varies Long Paragraph String)

Returns the Paragraphs within the specified range.

Parameter

Type

Description

from

Long

Paragraph

String

The Paragraph, index, or name at the beginning of the range. Can accept: Paragraph, Long or String.

to

Long

Paragraph

String

The Paragraph, index, or name at the end of the range. Can accept: Paragraph, Long or String.

Paragraph lastItem ()

Returns the last Paragraph in the collection.

Paragraph middleItem ()

Returns the middle Paragraph in the collection.

Paragraph nextItem (obj:Paragraph)

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

Parameter

Type

Description

obj

Paragraph

The Paragraph whose index comes before the desired Paragraph.

Paragraph previousItem (obj:Paragraph)

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

Parameter

Type

Description

obj

Paragraph

The index of the Paragraph that follows the desired Paragraph.

String toSource ()

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

Object of

Cell.paragraphs

Text.paragraphs

Character.paragraphs

Word.paragraphs

Line.paragraphs

TextColumn.paragraphs

Paragraph.paragraphs

TextStyleRange.paragraphs

InsertionPoint.paragraphs

TextFrame.paragraphs

Story.paragraphs

TextPath.paragraphs

Note.paragraphs

Footnote.paragraphs

XMLElement.paragraphs