LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

MoveCellBorder Method

Show in webframe







The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
The 0-based index of the cell inside the zone OcrZone.Cells. This cell must exist in the array, otherwise, this method will throw an exception.
The border to move. This cannot be OcrCellBorder.NoBorder.
The new position of the given border.
Moves the border of a cell.
Syntax
void MoveCellBorder( 
   int zoneIndex,
   int cellIndex,
   OcrCellBorder border,
   LogicalPoint newPosition
)
'Declaration
 
Sub MoveCellBorder( _
   ByVal zoneIndex As Integer, _
   ByVal cellIndex As Integer, _
   ByVal border As OcrCellBorder, _
   ByVal newPosition As LogicalPoint _
) 
'Usage
 
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
Dim cellIndex As Integer
Dim border As OcrCellBorder
Dim newPosition As LogicalPoint
 
instance.MoveCellBorder(zoneIndex, cellIndex, border, newPosition)
void MoveCellBorder( 
   int zoneIndex,
   int cellIndex,
   OcrCellBorder border,
   LogicalPoint newPosition
)

            

            
function Leadtools.Forms.Ocr.IOcrTableZoneManager.MoveCellBorder( 
   zoneIndex ,
   cellIndex ,
   border ,
   newPosition 
)
void MoveCellBorder( 
   int zoneIndex,
   int cellIndex,
   OcrCellBorder border,
   LogicalPoint newPosition
) 

Parameters

zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
cellIndex
The 0-based index of the cell inside the zone OcrZone.Cells. This cell must exist in the array, otherwise, this method will throw an exception.
border
The border to move. This cannot be OcrCellBorder.NoBorder.
newPosition
The new position of the given border.
Remarks

Manipulating cells position and size inside a table zone is a very sensitive matter and any non-accurate information will cause an error. The IOcrTableZoneManager contains methods to easily accomplish these tasks with minimum error. These methods are built around what is expected to be accomplished by an application that manipulates the cells of a zone through a user-interface, such as clicking and dragging with the mouse.

The following methods can be used to manipulate the cells position and size:

Requirements

Target Platforms

See Also

Reference

IOcrTableZoneManager Interface
IOcrTableZoneManager Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

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