←Select platform

FontIndex Property

Summary

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

Syntax

C#
VB
Java
C++
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, you use the PDFDocument.ParsePages method. After this method returns and depending on the value of PDFParsePagesOptions parameter passed to the method, the PDFDocumentPage'spdfdocumentpage.fonts, 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 PDFDocumentPage.Fonts collection that corresponds to the font of this item.

Example

For an example, refer to PDFObject.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly