[]
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.
IEnumerable<FontInfo> GetUsedFonts()
Function GetUsedFonts() As IEnumerable(Of FontInfo)
| Type | Description |
|---|---|
| IEnumerable<FontInfo> | A collection of FontInfo objects that represent the fonts used in the workbook. |
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();