[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.GetUsedFonts

GetUsedFonts Method

GetUsedFonts()

Gets all font information used in the workbook.

This method returns a collection of FontInfo objects that describe the fonts currently used by workbook content and styles.

Declaration
IEnumerable<FontInfo> GetUsedFonts()
Function GetUsedFonts() As IEnumerable(Of FontInfo)
Returns
Type Description
IEnumerable<FontInfo>

A collection of FontInfo objects that represent the fonts used in the workbook.

Examples
worksheet.Range["A1"].Value = "Title";
worksheet.Range["A1"].Font.Name = "Wide Latin";
worksheet.Range["B1"].Value = "Body";
worksheet.Range["B1"].Font.Name = "Calibri";
IEnumerable<FontInfo> fonts = workbook.GetUsedFonts();