LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

UpdateCells Method






The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
Updates the cells properties of a given table zone. .NET support
Syntax
void UpdateCells( 
   int zoneIndex
)
'Declaration
 
Sub UpdateCells( _
   ByVal zoneIndex As Integer _
) 
'Usage
 
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
 
instance.UpdateCells(zoneIndex)
void UpdateCells( 
   int zoneIndex
)
function Leadtools.Forms.Ocr.IOcrTableZoneManager.UpdateCells( 
   zoneIndex 
)
void UpdateCells( 
   int zoneIndex
) 

Parameters

zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
Remarks

You must call this method after you make any changes to the OcrZone.Cells property.

You can use table cells in one of two ways:

To manipulate a cell properties other than its bound (OcrZoneCell.Bounds), get the array of detected cells through OcrZone.Cells, change the cell background color, style or any border color, style or with. When you are done, re-set the array to OcrZone.Cells and call IOcrTableZoneManager.UpdateCells.

It is not recommended that you manually remove or add cells to the OcrZone.Cells, the engine is very sensitive to zone boundaries and any non-accurate information will cause an error. Instead, use the various methods of IOcrTableZoneManager to manipulate the cell location and size.

Example
For an example, refer to IOcrTableZoneManager.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IOcrTableZoneManager Interface
IOcrTableZoneManager Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

UpdateCells requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features