AddItemToUserDictionary method (ILEADRasterDocument)
short AddItemToUserDictionary (BSTR bstrSection, BSTR bstrUIDitem); | |
Overview |
Refer to Working with a Dictionary |
Remarks
Adds a new item to the specified section of the user dictionary that is currently open. The item will be added to the section of the user dictionary specified in the bstrSection parameter.
User dictionary items are UNICODE strings and they must be no longer than MAX_UD_ITEM_LENGTH characters (including the terminating zero). They may contain spaces and punctuation characters.
An item can be added either as a literal or as a regular expression. To determine whether an item is added as a literal or as a regular expression, set the DictionaryItemAttribute property before calling the SetUserDictionary method to save the user dictionary. User dictionary items having the regular expression attribute will be evaluated for conformance during the checking of the recognized result.
See Also