Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
AddItemToUserDictionary Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class : AddItemToUserDictionary Method




section
Name of the section where the word should be added. If the specified section does not exist, a new section will be created automatically.
item
RasterDocumentUserDictionaryItem class containing the item to be added.
Adds a new section item to the specified section in the user dictionary.

Syntax

Visual Basic (Declaration) 
Public Sub AddItemToUserDictionary( _
   ByVal section As String, _
   ByVal item As RasterDocumentUserDictionaryItem _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim section As String
Dim item As RasterDocumentUserDictionaryItem
 
instance.AddItemToUserDictionary(section, item)
C# 
public void AddItemToUserDictionary( 
   string section,
   RasterDocumentUserDictionaryItem item
)
Managed Extensions for C++ 
public: void AddItemToUserDictionary( 
   string* section,
   RasterDocumentUserDictionaryItem item
) 
C++/CLI 
public:
void AddItemToUserDictionary( 
   String^ section,
   RasterDocumentUserDictionaryItem item
) 

Parameters

section
Name of the section where the word should be added. If the specified section does not exist, a new section will be created automatically.
item
RasterDocumentUserDictionaryItem class containing the item to be added.

Example

Refer to SetUserDictionary example.

Remarks

The AddItemToUserDictionary method can be used to add a new User dictionary item, that is a literal or a regular expression, to the User dictionary currently opened.
The item will be added to the section of the User dictionary specified by pSection. User dictionary items are UNICODE strings and may contains spaces and punctuation characters.
When adding a new user dictionary item then you should specify the Attribute property value. An item can be added either as a literal or as a regular expression. User dictionary items having the regular expression attribute will be evaluated for conformance during the checking of the recognized result.
For more information, refer to Working with a Dictionary.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features