Contains information of a cell in a zone of type OcrZoneType.Table
public class OcrZoneCell
Public Class OcrZoneCell
@interface LTOcrZoneCell : NSObject <NSCopying>
public class OcrZoneCell
public ref class OcrZoneCell
This class contains the information for one cell:
The bounding rectangle of the cell in pixels
The type of the cell.
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:
Perform auto-zoning on the page using IOcrPage.AutoZone, if the page contains a detected table, the a zone of type OcrZoneType.Table is created for this table. If the engine successfully detects the cells of the table, These cells can be accessed using IOcrZoneCollection.GetZoneCells and IOcrZoneCollection.SetZoneCells.
Manually add a new OcrZone with its type set to OcrZoneType.Table to the zones collection of a page. Set the cells to null (Nothing in VB), now use the IOcrTableZoneManager.AutoDetectCells method to instruct the engine to detect any cells in this zone and fill the array with the data.
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.
For an example, refer to IOcrTableZoneManager.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries