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
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 that contains information used to update the zone.
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 that 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
)
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 that contains information used to update the zone.

Example

Refer to RasterDocumentEngine.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 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.