Adobe InDesign CS3 (5.0) Object Model JS: ParagraphStyleGroup

InDesign CS3

Class

ParagraphStyleGroup

 A paragraph style group.

QuickLinks

duplicate, extractLabel, getElements, insertLabel, move, remove, toSource, toSpecifier

Hierarchy

Application | Document | ParagraphStyleGroup
ParagraphStyleGroup
ParagraphStyle | ParagraphStyleGroup

Properties

PropertyTypeAccessDescription
allParagraphStyles Array of ParagraphStyle readonlyLists all paragraph styles (regardless of their group).
idnumber readonlyThe unique ID of the ParagraphStyleGroup.
indexnumber readonlyThe index of the ParagraphStyleGroup within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the ParagraphStyleGroup.
paragraphStyleGroupsParagraphStyleGroups readonlyA collection of paragraph style groups.
paragraphStylesParagraphStyles readonlyA collection of paragraph styles.
parentApplicationDocument
ParagraphStyleGroup
readonlyThe parent of the ParagraphStyleGroup (a Document, Application or ParagraphStyleGroup).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

ParagraphStyleGroup duplicate ()
Duplicates the ParagraphStyleGroup.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of ParagraphStyleGroup getElements ()
Resolves the object specifier, creating an array of object references.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

ParagraphStyleGroup move (to: LocationOptions[, reference: any])
Moves the style to the specified location.

ParameterTypeDescription
toLocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
The location relative to the reference object or within the containing object.
referenceApplication
CellStyle
CellStyleGroup
CharacterStyle
CharacterStyleGroup
Document
ParagraphStyle
ParagraphStyleGroup
TableStyle
TableStyleGroup
The reference object. Note: Required when the to parameter specifies before or after. Can accept: ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application. (Optional)

void remove ([replacingWith: any])
Deletes the style.

ParameterTypeDescription
replacingWithCharacterStyle
ParagraphStyle
The style to apply in place of the deleted style. Can accept: ParagraphStyle or CharacterStyle. (Optional)

string toSource ()
Generates a string which, if executed, will return the ParagraphStyleGroup.

string toSpecifier ()
Retrieves the object specifier.

Element of

ParagraphStyle.parent

ParagraphStyleGroup.parent

Used in:

CellStyle CellStyle.move (to: LocationOptions[, reference: any])

CellStyleGroup CellStyleGroup.move (to: LocationOptions[, reference: any])

CharacterStyle CharacterStyle.move (to: LocationOptions[, reference: any])

CharacterStyleGroup CharacterStyleGroup.move (to: LocationOptions[, reference: any])

ParagraphStyle ParagraphStyle.move (to: LocationOptions[, reference: any])

ParagraphStyleGroup ParagraphStyleGroup.move (to: LocationOptions[, reference: any])

array of ParagraphStyleGroup ParagraphStyleGroups.itemByRange (from: any, to: any)

ParagraphStyleGroup ParagraphStyleGroups.nextItem (obj: ParagraphStyleGroup)

ParagraphStyleGroup ParagraphStyleGroups.previousItem (obj: ParagraphStyleGroup)

TableStyle TableStyle.move (to: LocationOptions[, reference: any])

TableStyleGroup TableStyleGroup.move (to: LocationOptions[, reference: any])

Return

ParagraphStyleGroup ParagraphStyleGroup.duplicate ()

Array of ParagraphStyleGroup ParagraphStyleGroup.getElements ()

ParagraphStyleGroup ParagraphStyleGroup.move (to: LocationOptions[, reference: any])

ParagraphStyleGroup ParagraphStyleGroups.add ([withProperties: Object])

ParagraphStyleGroup ParagraphStyleGroups.anyItem ()

Array of ParagraphStyleGroup ParagraphStyleGroups.everyItem ()

ParagraphStyleGroup ParagraphStyleGroups.firstItem ()

ParagraphStyleGroup ParagraphStyleGroups.item (index: any)

ParagraphStyleGroup ParagraphStyleGroups.itemByID (id: number)

ParagraphStyleGroup ParagraphStyleGroups.itemByName (name: string)

Array of ParagraphStyleGroup ParagraphStyleGroups.itemByRange (from: any, to: any)

ParagraphStyleGroup ParagraphStyleGroups.lastItem ()

ParagraphStyleGroup ParagraphStyleGroups.middleItem ()

ParagraphStyleGroup ParagraphStyleGroups.nextItem (obj: ParagraphStyleGroup)

ParagraphStyleGroup ParagraphStyleGroups.previousItem (obj: ParagraphStyleGroup)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index