Leadtools.Forms.DocumentReaders Namespace : DocumentFont Structure |
[SerializableAttribute()] public struct DocumentFont : System.ValueType
'Declaration <SerializableAttribute()> Public Structure DocumentFont Inherits System.ValueType
'Usage Dim instance As DocumentFont
[SerializableAttribute()] public value class DocumentFont : public System.ValueType
The DocumentFont structure is used as the type for the DocumentPageText.Fonts collection.
You can read the fonts of a document page by using the DocumentObjectManager.ParsePageText method. The fonts found in the page will be set in the in DocumentPageText.Fonts property of the returned DocumentPageText object.
The font size is not stored in the DocumentFont structure. Instead, it is stored in the DocumentCharacter.FontSize and DocumentWord.FontSize properties of each item in the the returned DocumentPageText object's DocumentPageText.Characters and DocumentPageText.Words properties.
For an example, refer to DocumentPageText.