Adobe InDesign CS6 Server (8.0) Object Model JS: AutoCorrectPreference

InDesign Server CS6

Class

AutoCorrectPreference

 Auto-correct preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application
Preference
AutoCorrectPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
autoCorrectbool r/wIf true, automatically corrects misspelled words listed in the auto-correct table.
autoCorrectCapitalizationErrorsbool r/wIf true, automatically corrects capitalization errors listed in the auto-correct table.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentApplication readonlyThe parent of the AutoCorrectPreference (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 AutoCorrectPreference 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 AutoCorrectPreference.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.autoCorrectPreferences

Return

Array of AutoCorrectPreference AutoCorrectPreference.getElements ()

Jongware, 28-Apr-2012 v3.0.3iContents :: Index