Adobe InDesign CS4 (6.0) Object Model JS: NestedGrepStyles

InDesign CS4

Class

NestedGrepStyles

 A collection of nested GREP styles.

QuickLinks

[], add, anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

NestedGrepStyle [] (index: number)
Returns the NestedGrepStyle with the specified index.

ParameterTypeDescription
indexnumberThe index.

NestedGrepStyle add ([withProperties: Object])
Creates a new NestedGrepStyle.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new NestedGrepStyle (Optional)

NestedGrepStyle anyItem ()
Returns any NestedGrepStyle in the collection.

number count ()
Displays the number of elements in the NestedGrepStyle.

Array of NestedGrepStyle everyItem ()
Returns every NestedGrepStyle in the collection.

NestedGrepStyle firstItem ()
Returns the first NestedGrepStyle in the collection.

NestedGrepStyle item (index: any)
Returns the NestedGrepStyle with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

NestedGrepStyle itemByName (name: string)
Returns the NestedGrepStyle with the specified name.

ParameterTypeDescription
namestringThe name.

Array of NestedGrepStyle itemByRange (from: any, to: any)
Returns the NestedGrepStyles within the specified range.

ParameterTypeDescription
fromLong Integer
NestedGrepStyle
String
The NestedGrepStyle, index, or name at the beginning of the range. Can accept: NestedGrepStyle, Long Integer or String.
toLong Integer
NestedGrepStyle
String
The NestedGrepStyle, index, or name at the end of the range. Can accept: NestedGrepStyle, Long Integer or String.

NestedGrepStyle lastItem ()
Returns the last NestedGrepStyle in the collection.

NestedGrepStyle middleItem ()
Returns the middle NestedGrepStyle in the collection.

NestedGrepStyle nextItem (obj: NestedGrepStyle)
Returns the NestedGrepStyle whose index follows the specified NestedGrepStyle in the collection.

ParameterTypeDescription
objNestedGrepStyleThe NestedGrepStyle whose index comes before the desired NestedGrepStyle.

NestedGrepStyle previousItem (obj: NestedGrepStyle)
Returns the NestedGrepStyle with the index previous to the specified index.

ParameterTypeDescription
objNestedGrepStyleThe index of the NestedGrepStyle that follows the desired NestedGrepStyle.

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

Element of

Character.nestedGrepStyles

InsertionPoint.nestedGrepStyles

Line.nestedGrepStyles

Paragraph.nestedGrepStyles

ParagraphStyle.nestedGrepStyles

Story.nestedGrepStyles

Text.nestedGrepStyles

TextColumn.nestedGrepStyles

TextDefault.nestedGrepStyles

TextStyleRange.nestedGrepStyles

Word.nestedGrepStyles

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