Adobe InCopy CS5 (7.0) Object Model JS: AutoCorrectTable

InCopy CS5

Class

AutoCorrectTable

 An auto-correct table.

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application
AutoCorrectTable
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
autoCorrectWordPairList Array of
Arrays of 2 Strings
r/wAn auto-correct word pair, specified as a misspelled word and a corrected word. Can return: Array of Arrays of 2 Strings.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
indexnumber readonlyThe index of the AutoCorrectTable within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
namestring readonlyThe name of the AutoCorrectTable.
parentApplication readonlyThe parent of the AutoCorrectTable (a Application).
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 AutoCorrectTable getElements ()
Resolves the object specifier, creating an array of object references.

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

AutoCorrectTable AutoCorrectTables.nextItem (obj: AutoCorrectTable)

AutoCorrectTable AutoCorrectTables.previousItem (obj: AutoCorrectTable)

Return

Array of AutoCorrectTable AutoCorrectTable.getElements ()

AutoCorrectTable AutoCorrectTables.[] (index: number)

AutoCorrectTable AutoCorrectTables.anyItem ()

Array of AutoCorrectTable AutoCorrectTables.everyItem ()

AutoCorrectTable AutoCorrectTables.firstItem ()

AutoCorrectTable AutoCorrectTables.item (index: varies)

AutoCorrectTable AutoCorrectTables.itemByName (name: string)

Array of AutoCorrectTable AutoCorrectTables.itemByRange (from: varies, to: varies)

AutoCorrectTable AutoCorrectTables.lastItem ()

AutoCorrectTable AutoCorrectTables.middleItem ()

AutoCorrectTable AutoCorrectTables.nextItem (obj: AutoCorrectTable)

AutoCorrectTable AutoCorrectTables.previousItem (obj: AutoCorrectTable)

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