Leadtools.Forms.DocumentReaders Namespace > DocumentPageText Class : Fonts Property |
public IList<DocumentFont> Fonts {get;}
'Declaration Public ReadOnly Property Fonts As IList(Of DocumentFont)
'Usage Dim instance As DocumentPageText Dim value As IList(Of DocumentFont) value = instance.Fonts
public Windows.Foundation.Collections.IVector //In WinRT the IListinterface is replaced by IVector <DocumentFont> Fonts {get;}
get_Fonts();
public: property IList<DocumentFont>^ Fonts { IList<DocumentFont>^ get(); }
To read the text objects from a document, you use the ParsePageText method. The fonts found in the page will be set in the 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 in the Characters list.
The overall text string (with no extra properties) can be obtained using the DocumentPageText.BuildText method.
For an example, refer to DocumentPageText.
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