LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Bounds Property
See Also 
Leadtools.Forms.Ocr Namespace > OcrWord Structure : Bounds Property



The Bounds Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the word coordinates in logical units.

Syntax

Visual Basic (Declaration) 
Public Property Bounds As LogicalRectangle
Visual Basic (Usage)Copy Code
Dim instance As OcrWord
Dim value As LogicalRectangle
 
instance.Bounds = value
 
value = instance.Bounds
C# 
public LogicalRectangle Bounds {get; set;}
C++/CLI 
public:
property LogicalRectangle Bounds {
   LogicalRectangle get();
   void set (    LogicalRectangle value);
}

Property Value

A Leadtools.Forms.LogicalRectangle containing the word coordinates in logical units.

Example

For an example, refer to IOcrPage.GetRecognizedCharacters.

Remarks

You can get the recognized words of a zone with the IOcrZoneCharacters.GetWords method. This is a helper method that iterate through the OcrCharacter collection of the zone and constructs the words based on the OcrCharacter.Position flags.

The word coordinates is the sum of the coordinates of the characters (OcrCharacter.Bounds) from FirstCharacterIndex to LastCharacterIndex into the IOcrZoneCharacters collection.

The unit of this logical rectangle is the same as unit passed to IOcrZoneCharacters.GetWords.

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

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