ParagraphStyles
A collection of paragraph styles.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
ParagraphStyle add( Object withProperties )
Creates a new ParagraphStyle.
Parameters
Type Name Description 
Number count()
Displays the number of elements in the ParagraphStyle.
ParagraphStyle item( Mixed index )
Returns the ParagraphStyle with the specified index or name.
Parameters
Type Name Description 
ParagraphStyle itemByName( String name )
Returns the ParagraphStyle with the specified name.
Parameters
Type Name Description 
ParagraphStyle itemByID( Number id )
Returns the ParagraphStyle with the specified ID.
Parameters
Type Name Description 
ParagraphStyle itemByRange( Mixed from, Mixed to )
Returns the ParagraphStyles within the specified range.
Parameters
Type Name Description 
ParagraphStyle firstItem()
Returns the first ParagraphStyle in the collection.
ParagraphStyle lastItem()
Returns the last ParagraphStyle in the collection.
ParagraphStyle middleItem()
Returns the middle ParagraphStyle in the collection.
ParagraphStyle previousItem( ParagraphStyle obj )
Returns the ParagraphStyle with the index previous to the specified index.
Parameters
Type Name Description 
ParagraphStyle nextItem( ParagraphStyle obj )
Returns the ParagraphStyle whose index follows the specified ParagraphStyle in the collection.
Parameters
Type Name Description 
ParagraphStyle anyItem()
Returns any ParagraphStyle in the collection.
ParagraphStyle everyItem()
Returns every ParagraphStyle in the collection.
String toSource()
Generates a string which, if executed, will return the ParagraphStyle.
ParagraphStyle []( Number index )
Returns the ParagraphStyle with the specified index.
Parameters
Type Name Description