LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Cells Property
See Also 
Leadtools.Forms.Ocr Namespace > OcrZone Structure : Cells Property



Gets or sets the detected cells of this zone if the zone type is OcrZoneType.Table

Syntax

Visual Basic (Declaration) 
Public Property Cells As OcrZoneCell()
Visual Basic (Usage)Copy Code
Dim instance As OcrZone
Dim value() As OcrZoneCell
 
instance.Cells = value
 
value = instance.Cells
C# 
public OcrZoneCell[] Cells {get; set;}
C++/CLI 
public:
property array<OcrZoneCell^>^ Cells {
   array<OcrZoneCell^>^ get();
   void set (    array<OcrZoneCell^>^ value);
}

Property Value

An array of Leadtools.Forms.Ocr.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).

Example

For an example, refer to IOcrTableZoneManager.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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