←Select platform

OcrZoneCell Class

Summary

Contains information of a cell in a zone of type OcrZoneType.Table

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
[SerializableAttribute()] 
public class OcrZoneCell 
<SerializableAttribute()> 
Public Class OcrZoneCell  
public sealed class OcrZoneCell  
@interface LTOcrZoneCell : NSObject <NSCopying> 
public class OcrZoneCell 
function Leadtools.Forms.Ocr.OcrZoneCell() 
[SerializableAttribute()] 
public ref class OcrZoneCell  

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Ocr Assembly