NestedStyles

A collection of nested styles.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

NestedStyle [] (index:Number)

Returns the NestedStyle with the specified index.

Parameter

Type

Description

index

Number

The index.

NestedStyle add (withProperties:Object)

Creates a new NestedStyle.

Parameter

Type

Description

withProperties

Object

Initial 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.

NestedStyle everyItem ()

Returns every NestedStyle in the collection.

NestedStyle firstItem ()

Returns the first NestedStyle in the collection.

NestedStyle item (index:Varies LongInteger String)

Returns the NestedStyle with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

NestedStyle itemByRange (from:Varies LongInteger NestedStyle String, to:Varies LongInteger NestedStyle String)

Returns the NestedStyles within the specified range.

Parameter

Type

Description

from

LongInteger

NestedStyle

String

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

to

LongInteger

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.

Parameter

Type

Description

obj

NestedStyle

The NestedStyle whose index comes before the desired NestedStyle.

NestedStyle previousItem (obj:NestedStyle)

Returns the NestedStyle with the index previous to the specified index.

Parameter

Type

Description

obj

NestedStyle

The index of the NestedStyle that follows the desired NestedStyle.

String toSource ()

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

Object of

TextDefault.nestedStyles

Text.nestedStyles

Character.nestedStyles

Word.nestedStyles

Line.nestedStyles

TextColumn.nestedStyles

Paragraph.nestedStyles

TextStyleRange.nestedStyles

InsertionPoint.nestedStyles

Story.nestedStyles

ParagraphStyle.nestedStyles

XmlStory.nestedStyles