Removes one or more zones from the zone list for the specified page.
Syntax
Parameters
- pageIndex
- Specifies the index of the page for which the zone(s) will be deleted. This is a zero-based index.
- zoneIndex
- Specifies the index of the zone(s) to be deleted. This is a zero-based index.
Example
Visual Basic | Copy Code |
---|
Public Sub RemoveZoneExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Try
rasterDocument.RemoveZone(0, 0)
MessageBox.Show("The specified zone is deleted from the specified page")
Catch e1 As Exception
MessageBox.Show("The engine couldn't delete the specified zone")
End Try
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
// RasterDocumentEngine rasterDocument; public void RemoveZoneExample() { // Note that this is a sample key, which will not work in your toolkit RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); RasterDocumentEngine rasterDocument; rasterDocument = RasterDocumentEngine.Instance; rasterDocument.Startup(); // assume page is added, refer to AddPage example for more information // assume zones are added, refer to AddZone example or FindZones for more information try { rasterDocument.RemoveZone(0, 0); MessageBox.Show("The specified zone is deleted from the specified page"); } catch (Exception) { MessageBox.Show("The engine couldn't delete the specified zone"); } 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