Adobe InDesign CS4 (6.0) Object Model JS: NestedStyles

InDesign CS4

Class

NestedStyles

 A collection of nested 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

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

ParameterTypeDescription
indexnumberThe index.

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

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

NestedStyle anyItem ()
Returns any NestedStyle in the collection.

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

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

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

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

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

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objNestedStyleThe NestedStyle whose index comes before the desired NestedStyle.

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

ParameterTypeDescription
objNestedStyleThe index of the NestedStyle that follows the desired NestedStyle.

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

Element of

Character.nestedStyles

InsertionPoint.nestedStyles

Line.nestedStyles

Paragraph.nestedStyles

ParagraphStyle.nestedStyles

Story.nestedStyles

Text.nestedStyles

TextColumn.nestedStyles

TextDefault.nestedStyles

TextStyleRange.nestedStyles

Word.nestedStyles

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