Visual Basic (Declaration) | |
---|---|
Public Sub AddItemToUserDictionary( _ ByVal section As String, _ ByVal item As RasterDocumentUserDictionaryItem _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
Refer to SetUserDictionary example.
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.
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.
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