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
SelectZone(Graphics,Int32,Int32,Boolean) Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class > SelectZone Method : SelectZone(Graphics,Int32,Int32,Boolean) Method



graphics
Graphics object specified the device that contains the drawing.
pageIndex
Specifies the index of the page that contains the zones. This index is zero-based.
zoneIndex
Specifies the index of the page which contains the zone.This index is zero-based.
select
Flag which determines the method behavior.
graphics
Graphics object specified the device that contains the drawing.
pageIndex
Specifies the index of the page that contains the zones. This index is zero-based.
zoneIndex
Specifies the index of the page which contains the zone.This index is zero-based.
select
Flag which determines the method behavior.
Selects or deselects the specified zone and draws it in the specified Graphics object.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub SelectZone( _
   ByVal graphics As Graphics, _
   ByVal pageIndex As Integer, _
   ByVal zoneIndex As Integer, _
   ByVal select As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim graphics As Graphics
Dim pageIndex As Integer
Dim zoneIndex As Integer
Dim select As Boolean
 
instance.SelectZone(graphics, pageIndex, zoneIndex, select)
C# 
public void SelectZone( 
   Graphics graphics,
   int pageIndex,
   int zoneIndex,
   bool select
)
C++/CLI 
public:
void SelectZone( 
   Graphics graphics,
   int pageIndex,
   int zoneIndex,
   bool select
) 

Parameters

graphics
Graphics object specified the device that contains the drawing.
pageIndex
Specifies the index of the page that contains the zones. This index is zero-based.
zoneIndex
Specifies the index of the page which contains the zone.This index is zero-based.
select
Flag which determines the method behavior.

Example

Remarks

Selects or deselects the specified zone in the specified page and draws the results into the specified Graphics object. To draw a page, call DrawPage method. To select a zone by specifying a hit point, call RasterDocumentEngine.SelectZoneByPoint(Graphics,Int32,Point).
This method will update the SelectedZoneIndex property value as follows:
  • If the selectZone parameter value is true, then SelectedZoneIndex property will be updated to equal to zoneIndex parameter value
  • If the selectZone parameter value is false, then SelectedZoneIndex property will be -1.
For more information, refer to Drawing Pages and Zones.

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.