Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SelectZone(IntPtr,Int32,Int32,Boolean) Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class > SelectZone Method : SelectZone(IntPtr,Int32,Int32,Boolean) Method




hdc
Specifies the device context
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 hdc As IntPtr, _
   ByVal pageIndex As Integer, _
   ByVal zoneIndex As Integer, _
   ByVal select As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim hdc As IntPtr
Dim pageIndex As Integer
Dim zoneIndex As Integer
Dim select As Boolean
 
instance.SelectZone(hdc, pageIndex, zoneIndex, select)
C# 
public void SelectZone( 
   IntPtr hdc,
   int pageIndex,
   int zoneIndex,
   bool select
)
Managed Extensions for C++ 
public: void SelectZone( 
   IntPtr hdc,
   int pageIndex,
   int zoneIndex,
   bool select
) 
C++/CLI 
public:
void SelectZone( 
   IntPtr hdc,
   int pageIndex,
   int zoneIndex,
   bool select
) 

Parameters

hdc
Specifies the device context
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.

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 SelectZoneByPoint.
This method will update the SelectedZoneIndex property value as follows:
  • If the selectZone parameter value is true, then the SelectedZoneIndex property will be updated to equal to zoneIndex parameter value
  • If the selectZone parameter value is false, then the SelectedZoneIndex property will be -1.
For more information, refer to Drawing Pages and Zones.

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

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features