Deletes the selected zone from the zone list in the specified page.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub RemoveSelectedZone( _
ByVal pageIndex As Integer _
) |
Parameters
- pageIndex
- Specifies the index of the page which contains the selected zone. This index is zero-based.
Example
Visual Basic | Copy Code |
---|
Public Sub RemoveSelectedZoneExample()
RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")
Dim rasterDocument As RasterDocumentEngine
rasterDocument = RasterDocumentEngine.Instance
rasterDocument.Startup()
Try
rasterDocument.RemoveSelectedZone(0)
MessageBox.Show("The selected zone is deleted from Zone list in the page")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
rasterDocument.Shutdown()
End Sub |
C# | Copy Code |
---|
public void RemoveSelectedZoneExample() { // 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(); // assume page is added, refer to AddPage example for more information // assume zones are added, refer to AddZone example or FindZones for more information // select zone try { rasterDocument.RemoveSelectedZone(0); MessageBox.Show("The selected zone is deleted from Zone list in the page"); } catch (Exception ex) { MessageBox.Show(ex.Message); } rasterDocument.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also
Reference
RasterDocumentEngine Class
RasterDocumentEngine Members
AddZone Method
UpdateZone Method
DrawPage(Graphics,Int32,Rectangle,Rectangle,Rectangle,Rectangle,RasterPaintProperties) Method
SelectZoneByPoint(Graphics,Int32,Point) Method
SelectZone(Graphics,Int32,Int32,Boolean) Method
UpdateZoneArea Method
GetSelectedZoneData Method
ActivePage Property