Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
UpdateZone Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class : UpdateZone Method




pageIndex
Specifies the index of the page that contains the zone to be updated. This is a zero-based index.
zoneIndex
Specifies the index of the zone to be updated. This is a zero-based index.
zoneData
RasterDocumentZoneData class contains information used to update the zone.
Updates the zone data for a single zone in the zone list.

Syntax

Visual Basic (Declaration) 
Public Sub UpdateZone( _
   ByVal pageIndex As Integer, _
   ByVal zoneIndex As Integer, _
   ByVal zoneData As RasterDocumentZoneData _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim pageIndex As Integer
Dim zoneIndex As Integer
Dim zoneData As RasterDocumentZoneData
 
instance.UpdateZone(pageIndex, zoneIndex, zoneData)
C# 
public void UpdateZone( 
   int pageIndex,
   int zoneIndex,
   RasterDocumentZoneData zoneData
)
Managed Extensions for C++ 
public: void UpdateZone( 
   int pageIndex,
   int zoneIndex,
   RasterDocumentZoneData* zoneData
) 
C++/CLI 
public:
void UpdateZone( 
   int pageIndex,
   int zoneIndex,
   RasterDocumentZoneData^ zoneData
) 

Parameters

pageIndex
Specifies the index of the page that contains the zone to be updated. This is a zero-based index.
zoneIndex
Specifies the index of the zone to be updated. This is a zero-based index.
zoneData
RasterDocumentZoneData class contains information used to update the zone.

Example

Refer to GetZone example.

Remarks

Adds updating a zone in the zone list of the specified page. After the zone is added, the zone list is recalculated automatically. When adding a zone, the application should directly initialize the following properties of the RasterDocumentZoneData class, since these members will not take their default values: The OCR engine manages the RasterDocumentZoneData.Id property, except for OMR zones using the "filled-in-error" facility. The RasterDocumentZoneData.Type property should be one of the following values: For successful zone update, the whole zone area must lie within the page area and the top left coordinates of the zone must have lower values than those of the bottom right ones. To update only the zone area, call UpdateZoneArea.
For more information, refer to Working with 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