A user dictionary.
Go to Property Listing | Method Listing
addWord, removeWord, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Boolean, EventListeners, Events, Number, Object, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
addedWords |
read/write |
A list of words added to the user dictionary. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
index |
readonly |
The index of the UserDictionary within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
name |
readonly |
The name of the UserDictionary. |
|
|
parent |
readonly |
The parent of the UserDictionary (a Application). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
removedWords |
read/write |
A list of words removed from the user dictionary. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined addWord (addedWords:Array of String, [removedList:Boolean=Boolean])
Adds the specified words to the specified list in the dictionary.
|
Parameter |
Type |
Description |
|---|---|---|
|
addedWords |
The words to add. |
|
|
removedList |
If true, adds the words to the removed words list. If false or unspecified, adds the words to the added words list. (Optional) (default: false) |
UserDictionary getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined removeWord (removedWords:Array of String, [removedList:Boolean=Boolean])
Removes the specified words from the specified list in the dictionary.
|
Parameter |
Type |
Description |
|---|---|---|
|
removedWords |
The words to remove. |
|
|
removedList |
If true, removes the words from the removed words list. If false or unspecified, removes the words from the added words list. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the UserDictionary.
String toSpecifier ()
Retrieves the object specifier.