LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OcrZoneCell Class
See Also  Members  
Leadtools.Forms.Ocr Namespace : OcrZoneCell Class



Information of a cell in a zone of type OcrZoneType.Table

Object Model

OcrZoneCell Class

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class OcrZoneCell 
Visual Basic (Usage)Copy Code
Dim instance As OcrZoneCell
C# 
[SerializableAttribute()]
public class OcrZoneCell 
C++/CLI 
[SerializableAttribute()]
public ref class OcrZoneCell 

Example

For an example, refer to IOcrTableZoneManager.

Remarks

This class contains the information for one cell:

Member Description
OcrZoneCell.Bounds

The bounding rectangle of the cell in logical (page) units

OcrZoneCell.CellType

The type of the cell.

OcrZoneCell.BackgroundColor

The background color of the cell.

OcrZoneCell.LeftBorderColor, OcrZoneCell.LeftBorderStyle, OcrZoneCell.LeftBorderWidth

The properties of the left border of the cell: Its color, style (none, solid, dashed, etc.) and its width.

OcrZoneCell.TopBorderColor, OcrZoneCell.TopBorderStyle, OcrZoneCell.TopBorderWidth

The properties of the top border of the cell: Its color, style (none, solid, dashed, etc.) and its width.

OcrZoneCell.RightBorderColor, OcrZoneCell.RightBorderStyle, OcrZoneCell.RightBorderWidth

The properties of the right border of the cell: Its color, style (none, solid, dashed, etc.) and its width.

OcrZoneCell.BottomBorderColor, OcrZoneCell.BottomBorderStyle, OcrZoneCell.BottomBorderWidth

The properties of the bottom border of the cell: Its color, style (none, solid, dashed, etc.) and its width.

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.

Inheritance Hierarchy

System.Object
   Leadtools.Forms.Ocr.OcrZoneCell

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

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