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

Cells Property






Gets or sets the detected cells of this zone if the zone type is OcrZoneType.Table .NET support
Syntax
public OcrZoneCell[] Cells {get; set;}
'Declaration
 
Public Property Cells As OcrZoneCell()
'Usage
 
Dim instance As OcrZone
Dim value() As OcrZoneCell
 
instance.Cells = value
 
value = instance.Cells
public OcrZoneCell[] Cells {get; set;}
 get_Cells();
set_Cells(value);
public:
property array<OcrZoneCell^>^ Cells {
   array<OcrZoneCell^>^ get();
   void set (    array<OcrZoneCell^>^ value);
}

Property Value

An array of OcrZoneCell object that represents the detected cells of this zone if the zone type is OcrZoneType.Table. Default value is null (Nothing in Visual Basic).
Remarks

Note: In Windows Runtime, the OcrZone does not contain an array of cells. Instead you can access and update the zone cells using IOcrZoneCollection.GetZoneCells and IOcrZoneCollection.SetZoneCells.

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

OcrZone Structure
OcrZone Members

 

 


Products | Support | Contact Us | Copyright Notices

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

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