ParagraphStyle
ParagraphStyle
Section titled “ParagraphStyle”app.activeDocument.paragraphStyles[index]
Description
Section titled “Description”Associates character and paragraph attributes with a style name. The style object can be used to apply those attributes to the text in a TextFrame object. See Creating and applying a paragraph style example.
Properties
Section titled “Properties”ParagraphStyle.characterAttributes
Section titled “ParagraphStyle.characterAttributes”app.activeDocument.paragraphStyles[index].characterAttributes
Description
Section titled “Description”The character properties for the text range.
CharacterAttributes; read-only.
ParagraphStyle.name
Section titled “ParagraphStyle.name”app.activeDocument.paragraphStyles[index].name
Description
Section titled “Description”The paragraph style’s name.
String.
ParagraphStyle.paragraphAttributes
Section titled “ParagraphStyle.paragraphAttributes”app.activeDocument.paragraphStyles[index].paragraphAttributes
Description
Section titled “Description”The paragraph properties for the text range.
CharacterAttributes; read-only.
ParagraphStyle.parent
Section titled “ParagraphStyle.parent”app.activeDocument.paragraphStyles[index].parent
Description
Section titled “Description”The object’s container.
Object; read-only.
ParagraphStyle.typename
Section titled “ParagraphStyle.typename”app.activeDocument.paragraphStyles[index].typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Methods
Section titled “Methods”ParagraphStyle.applyTo()
Section titled “ParagraphStyle.applyTo()”app.activeDocument.paragraphStyles[index].applyTo(textItem [,clearingOverrides])
Description
Section titled “Description”Applies this paragraph style to the specified text item.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
textItem | Object | Paragraph item to apply style to |
clearingOverrides | Boolean, optional | Whether to clear overrides |
Returns
Section titled “Returns”Nothing.
ParagraphStyle.remove()
Section titled “ParagraphStyle.remove()”app.activeDocument.paragraphStyles[index].remove()
Description
Section titled “Description”Deletes the object.
Returns
Section titled “Returns”Nothing.