LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

UpdateCells Method

Show in webframe







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.
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

See Also

Reference

IOcrTableZoneManager Interface
IOcrTableZoneManager Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 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