←Select platform

Characters Property

Summary

Gets a list of the text characters found in this document page.

Syntax

C#
VB
C++
public IList<DocumentCharacter> Characters {get;}
Public ReadOnly Property Characters As IList(Of DocumentCharacter)
public: 
property IList<DocumentCharacter>^ Characters { 
   IList<DocumentCharacter>^ get(); 
} 

Property Value

A IList of DocumentCharacter objects for each text character found in the page. The default value is null.

Remarks

To read the text objects from a document, use the ParsePageText method. The fonts found in the page will be set in the in Fonts property of the returned DocumentPageText object.

The text characters found in the page will be returned in the Characters property. Each DocumentCharacter object in the list will have its DocumentCharacter.FontIndex property set to an index to an item in the Fonts list.

The text words found in the page will be returned in the Words property. Each DocumentWord object in the list will have its DocumentWord.FontIndex property set to the index of an item in the Fonts list. Also, the DocumentWord.FirstCharacterIndex and DocumentWord.LastCharacterIndex will contain the indices of the characters of the word into the Characters list.

The overall text string (without any extra properties) can be obtained using the DocumentPageText.BuildText method.

Example

For an example, refer to DocumentPageText.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Forms.DocumentReaders Assembly
Click or drag to resize