Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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.
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
)
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

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 RasterDocumentUserDictionaryItem.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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.