UserDictionary
A user dictionary.
Go to Property Listing | Method Listing
Methods:
addEventListener, addWord, getElements, removeEventListener, removeWord, toSource, toSpecifier
Objects:
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
A list of words added to the user dictionary. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The index of the UserDictionary within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The name of the UserDictionary. |
||
readonly |
The parent of the UserDictionary (a Application). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
A list of words removed from the user dictionary. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
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 File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
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.
Object of
Event.parent
EventListener.parent
MutationEvent.parent
Return
UserDictionaries.itemByRange()