LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetCellBorderDragLimit Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrTableZoneManager Interface : GetCellBorderDragLimit Method



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.
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.
Get the moving limits of a cell border.

Syntax

Visual Basic (Declaration) 
Function GetCellBorderDragLimit( _
   ByVal zoneIndex As Integer, _
   ByVal cellIndex As Integer, _
   ByVal border As OcrCellBorder _
) As OcrCellBorderDragLimit
Visual Basic (Usage)Copy Code
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
Dim cellIndex As Integer
Dim border As OcrCellBorder
Dim value As OcrCellBorderDragLimit
 
value = instance.GetCellBorderDragLimit(zoneIndex, cellIndex, border)
C# 
OcrCellBorderDragLimit GetCellBorderDragLimit( 
   int zoneIndex,
   int cellIndex,
   OcrCellBorder border
)
C++/CLI 
OcrCellBorderDragLimit GetCellBorderDragLimit( 
   int zoneIndex,
   int cellIndex,
   OcrCellBorder border
) 

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.

Return Value

An OcrCellBorderDragLimit that contains the maximum and minimum movement values.

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:

  • SplitCells and merge cells to split/merge the cells inside a given area in a table zone. This makes it easy to add/remove cells to the zone.

  • GetPointInformation to Gets the cell index and the nearest border for a given point. This can be used by selecting a cell or a border using a mouse click.

  • MoveCellBorder and GetCellBorderDragLimit to move a cell border while making sure it does not get run over adjuscent cells or the table area. This can be used to change the size of a cell by clicking and dragging the mouse.

  • GetTabulatorPosition to get the tabulator position. The tabulator has only a horizontal position.

  • GetHorizontalSplitters and GetVerticalSplitters to get the number and positions of horizontal and vertical splitters. You can these methods to draw splitter guidelines in your user interface, or change the mouse cursor to a different shape if it is located over a splitter and dragging is allowed.

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

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