NestedStyle

A nested style.

Methods:

addEventListener, getElements, remove, removeEventListener, toSource, toSpecifier

Objects:

Boolean, CharacterStyle, EventListeners, Events, NestedStyleDelimiters, Number, Object, String,

Property Listing

Property

Type

Access

Description

appliedCharacterStyle

CharacterStyle

String

read/write

The character style applied to the text. Can also accept: String.

delimiter

String

NestedStyleDelimiters

NestedStyleDelimiters.ANY_CHARACTER

NestedStyleDelimiters.ANY_WORD

NestedStyleDelimiters.AUTO_PAGE_NUMBER

NestedStyleDelimiters.DIGITS

NestedStyleDelimiters.DROPCAP

NestedStyleDelimiters.EM_SPACE

NestedStyleDelimiters.END_NESTED_STYLE

NestedStyleDelimiters.EN_SPACE

NestedStyleDelimiters.FORCED_LINE_BREAK

NestedStyleDelimiters.INDENT_HERE_TAB

NestedStyleDelimiters.INLINE_GRAPHIC

NestedStyleDelimiters.LETTERS

NestedStyleDelimiters.NONBREAKING_SPACE

NestedStyleDelimiters.REPEAT

NestedStyleDelimiters.SECTION_MARKER

NestedStyleDelimiters.SENTENCE

NestedStyleDelimiters.TABS

read/write

The delimiting expression that indicates how deeply into the paragraph the nested style is applied. Can return: String or NestedStyleDelimiters enumerator.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

inclusive

Boolean

read/write

If true, the nested style is applied through the last delimiter. If false, the nested style is applied up to the last delimiter.

index

Number

readonly

The index of the NestedStyle within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Character

InsertionPoint

Line

Paragraph

ParagraphStyle

Story

Text

TextColumn

TextStyleRange

Word

TextDefault

XmlStory

readonly

The parent of the NestedStyle (a TextDefault, Paragraph, ParagraphStyle, Text, InsertionPoint, TextStyleRange, TextColumn, Line, Word, Character, Story or XmlStory).

properties

Object

read/write

A property that allows setting of several properties at the same time.

repetition

Number

read/write

The number instances of the specified delimiter up to which, or through which, to apply the nested style.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

NestedStyle getElements ()

Resolves the object specifier, creating an array of object references.

undefined remove ()

Deletes the NestedStyle.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Event.parent

EventListener.parent

MutationEvent.parent

Return

NestedStyles.add()

NestedStyle.getElements()

NestedStyles.anyItem()

NestedStyles.everyItem()

NestedStyles.nextItem()

NestedStyles.previousItem()

NestedStyles.item()

NestedStyles.[]()

NestedStyles.itemByRange()

NestedStyles.firstItem()

NestedStyles.lastItem()

NestedStyles.middleItem()