ParagraphStyles

A collection of paragraph styles.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, 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

ParagraphStyle [] (index:Number)

Returns the ParagraphStyle with the specified index.

Parameter

Type

Description

index

Number

The index.

ParagraphStyle add (withProperties:Object)

Creates a new ParagraphStyle.

Parameter

Type

Description

withProperties

Object

Initial values for properties of the new ParagraphStyle (Optional)

ParagraphStyle anyItem ()

Returns any ParagraphStyle in the collection.

Number count ()

Displays the number of elements in the ParagraphStyle.

ParagraphStyle everyItem ()

Returns every ParagraphStyle in the collection.

ParagraphStyle firstItem ()

Returns the first ParagraphStyle in the collection.

ParagraphStyle item (index:Varies LongInteger String)

Returns the ParagraphStyle with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

ParagraphStyle itemByID (id:Number)

Returns the ParagraphStyle with the specified ID.

Parameter

Type

Description

id

Number

The ID.

ParagraphStyle itemByName (name:String)

Returns the ParagraphStyle with the specified name.

Parameter

Type

Description

name

String

The name.

ParagraphStyle itemByRange (from:Varies LongInteger ParagraphStyle String, to:Varies LongInteger ParagraphStyle String)

Returns the ParagraphStyles within the specified range.

Parameter

Type

Description

from

LongInteger

ParagraphStyle

String

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

to

LongInteger

ParagraphStyle

String

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

ParagraphStyle lastItem ()

Returns the last ParagraphStyle in the collection.

ParagraphStyle middleItem ()

Returns the middle ParagraphStyle in the collection.

ParagraphStyle nextItem (obj:ParagraphStyle)

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

Parameter

Type

Description

obj

ParagraphStyle

The ParagraphStyle whose index comes before the desired ParagraphStyle.

ParagraphStyle previousItem (obj:ParagraphStyle)

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

Parameter

Type

Description

obj

ParagraphStyle

The index of the ParagraphStyle that follows the desired ParagraphStyle.

String toSource ()

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

Object of

Application.paragraphStyles

Document.paragraphStyles

ParagraphStyleGroup.paragraphStyles