←Select platform

FontIndex Property

Summary

Index of a font used by this text item in the font array.

Syntax
C#
VB
C++
Java
public int FontIndex { get; set; } 
Public Property FontIndex As Integer 
public int getFontIndex() 
public void setFontIndex(int index) 
public: 
property int FontIndex { 
   int get(); 
   void set (    int ); 
} 

Property Value

The 0-based index of font used by this text item into the font array. The default value is 0.

Remarks

To read objects (including text items) from a PDF file, use the PDFDocument.ParsePages method. After this method returns and depending on the value of PDFParsePagesOptions parameter passed to the method, the PDFDocumentPage.Objects, PDFDocumentPage.Annotations, PDFDocumentPage.FormFields, PDFDocumentPage.Signatures and PDFDocumentPage.Hyperlinks collections will be populated with the items of the PDF page. The FontIndex property will contain the index in the PDFDocument.Fonts collection that corresponds to the font of this item.

Example

For an example, refer to PDFObject.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly