ParagraphStyles
A collection of paragraph styles.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
ParagraphStyle [] (index:Number)
Returns the ParagraphStyle with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
ParagraphStyle add (withProperties:Object)
Creates a new ParagraphStyle.
Parameter |
Type |
Description |
---|---|---|
withProperties |
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 |
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 |
The ID. |
ParagraphStyle itemByName (name:String)
Returns the ParagraphStyle with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
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 |
The ParagraphStyle, index, or name at the beginning of the range. Can accept: ParagraphStyle, Long Integer or String. |
to |
LongInteger |
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 |
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 |
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