Skip to content

ParagraphStyle

app.activeDocument.paragraphStyles[index]

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.


app.activeDocument.paragraphStyles[index].characterAttributes

The character properties for the text range.

CharacterAttributes; read-only.


app.activeDocument.paragraphStyles[index].name

The paragraph style’s name.

String.


app.activeDocument.paragraphStyles[index].paragraphAttributes

The paragraph properties for the text range.

CharacterAttributes; read-only.


app.activeDocument.paragraphStyles[index].parent

The object’s container.

Object; read-only.


app.activeDocument.paragraphStyles[index].typename

The class name of the object.

String; read-only.


app.activeDocument.paragraphStyles[index].applyTo(textItem [,clearingOverrides])

Applies this paragraph style to the specified text item.

ParameterTypeDescription
textItemObjectParagraph item to apply style to
clearingOverridesBoolean, optionalWhether to clear overrides

Nothing.


app.activeDocument.paragraphStyles[index].remove()

Deletes the object.

Nothing.