ParagraphStyle
ParagraphStyle
Section titled “ParagraphStyle”app.activeDocument.paragraphStyles[index]
将字符和段落属性与样式名称关联。样式对象可用于将这些属性应用于 TextFrame 对象中的文本。请参阅 创建并应用段落样式 示例。
ParagraphStyle.characterAttributes
Section titled “ParagraphStyle.characterAttributes”app.activeDocument.paragraphStyles[index].characterAttributes
文本范围的字符属性。
CharacterAttributes; 只读。
ParagraphStyle.name
Section titled “ParagraphStyle.name”app.activeDocument.paragraphStyles[index].name
段落样式的名称。
字符串。
ParagraphStyle.paragraphAttributes
Section titled “ParagraphStyle.paragraphAttributes”app.activeDocument.paragraphStyles[index].paragraphAttributes
文本范围的段落属性。
CharacterAttributes; 只读。
ParagraphStyle.parent
Section titled “ParagraphStyle.parent”app.activeDocument.paragraphStyles[index].parent
对象的容器。
对象; 只读。
ParagraphStyle.typename
Section titled “ParagraphStyle.typename”app.activeDocument.paragraphStyles[index].typename
对象的类名。
字符串; 只读。
ParagraphStyle.applyTo()
Section titled “ParagraphStyle.applyTo()”app.activeDocument.paragraphStyles[index].applyTo(textItem [,clearingOverrides])
将此段落样式应用于指定的文本项。
参数 | 类型 | 描述 |
---|---|---|
textItem | 对象 | 要应用样式的段落项 |
clearingOverrides | 布尔值, 可选 | 是否清除覆盖 |
无。
ParagraphStyle.remove()
Section titled “ParagraphStyle.remove()”app.activeDocument.paragraphStyles[index].remove()
删除对象。
无。