Adobe InCopy CS5 (7.0) Object Model JS: NestedGrepStyle

InCopy CS5

Class

NestedGrepStyle

 A nested GREP style.

QuickLinks

addEventListener, getElements, remove, removeEventListener, toSource, toSpecifier

Hierarchy

Character | InsertionPoint | Line | Paragraph | ParagraphStyle | Story | Text | TextColumn | TextDefault | TextStyleRange | Word | XmlStory
NestedGrepStyle
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
appliedCharacterStyleCharacterStyleString r/wThe character style applied to the text. Can also accept: String.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
grepExpressionstring r/wThe GREP expression used to apply automatic styling.
indexnumber readonlyThe index of the NestedGrepStyle within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentCharacter
InsertionPoint
Line
Paragraph
ParagraphStyle
Story
Text
TextColumn
TextDefault
TextStyleRange
Word
XmlStory
readonlyThe parent of the NestedGrepStyle (a TextDefault, Paragraph, ParagraphStyle, Text, InsertionPoint, TextStyleRange, TextColumn, Line, Word, Character, Story or XmlStory).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

void remove ()
Deletes the NestedGrepStyle.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

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

string toSpecifier ()
Retrieves the object specifier.

Element of

Event.parent

EventListener.parent

MutationEvent.parent

Used in:

NestedGrepStyle NestedGrepStyles.nextItem (obj: NestedGrepStyle)

NestedGrepStyle NestedGrepStyles.previousItem (obj: NestedGrepStyle)

Return

Array of NestedGrepStyle NestedGrepStyle.getElements ()

NestedGrepStyle NestedGrepStyles.[] (index: number)

NestedGrepStyle NestedGrepStyles.add ([withProperties: Object])

NestedGrepStyle NestedGrepStyles.anyItem ()

Array of NestedGrepStyle NestedGrepStyles.everyItem ()

NestedGrepStyle NestedGrepStyles.firstItem ()

NestedGrepStyle NestedGrepStyles.item (index: varies)

Array of NestedGrepStyle NestedGrepStyles.itemByRange (from: varies, to: varies)

NestedGrepStyle NestedGrepStyles.lastItem ()

NestedGrepStyle NestedGrepStyles.middleItem ()

NestedGrepStyle NestedGrepStyles.nextItem (obj: NestedGrepStyle)

NestedGrepStyle NestedGrepStyles.previousItem (obj: NestedGrepStyle)

Jongware, 23-Mar-2011 v3.0.3dContents :: Index