Removes the specified section item from the specified section in the user dictionary.
Syntax
Parameters
- section
- Name of the section from which the item should be deleted.
- item
- RasterDocumentUserDictionaryItem class containing the word to be deleted. (The string must be terminated with a double zero.)
Example
Visual Basic | Copy Code |
---|
Public Sub RemoveItemFromUserDictionaryExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Dim item As RasterDocumentUserDictionaryItem = RasterDocumentUserDictionaryItem.Empty
item.Value = "Peabody"
item.Attribute = RasterDocumentDictionaryAttribute.Literal
rasterDocument.RemoveItemFromUserDictionary("cities", item)
rasterDocument.SetUserDictionary("USERDIC1.DIC", "cities", False)
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void RemoveItemFromUserDictionaryExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); // ... // ... // ... RasterDocumentUserDictionaryItem item = RasterDocumentUserDictionaryItem.Empty; item.Value = "Peabody"; item.Attribute = RasterDocumentDictionaryAttribute.Literal; rasterDocument.RemoveItemFromUserDictionary("cities", item); rasterDocument.SetUserDictionary("USERDIC1.DIC", "cities", false); rasterDocument.Shutdown(); } |
Remarks
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