Error processing SSI file
LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

Show in webframe

AutoDetectCells 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.
Detects the cells within a table zone.
Syntax
void AutoDetectCells( 
   int zoneIndex
)
'Declaration
 
Sub AutoDetectCells( _
   ByVal zoneIndex As Integer _
) 
'Usage
 
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
 
instance.AutoDetectCells(zoneIndex)
void AutoDetectCells( 
   int zoneIndex
)
function Leadtools.Forms.Ocr.IOcrTableZoneManager.AutoDetectCells( 
   zoneIndex 
)
void AutoDetectCells( 
   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

When this method returns, an internal array of the cells is stored in the engine containing the detected cells and their properties.

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 IOcrZoneCollection.GetZoneCells, change the cell background color, style or any border color, style or with. When you are done, re-set the array using IOcrZoneCollection.SetZoneCells.

It is not recommended that you manually remove or add cells to the array, 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

Error processing SSI file
Leadtools.Forms.Ocr requires a Recognition or Document Imaging Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features