[]
Represents a collection of FontHandler objects.
public class FontHandlerCollection : KeyedCollection<Font, FontHandler>, IList<FontHandler>, ICollection<FontHandler>, IList, ICollection, IReadOnlyList<FontHandler>, IReadOnlyCollection<FontHandler>, IEnumerable<FontHandler>, IEnumerable
Gets the GcPdfDocument that owns this collection.
public GcPdfDocument Doc { get; }
Gets a value indicating whether the current collection contains at least one FontHandler object with the UsedInDocument property set.
public bool HasUsedFonts { get; }
protected override void ClearItems()
Gets an existing FontHandler associated with a specified Font, or creates a new one if such font does not exist.
public FontHandler GetFontHandler(Font font)
font
FontThe font.
The existing or newly created PdfFont.
protected override Font GetKeyForItem(FontHandler item)
item
FontHandlerprotected override void InsertItem(int index, FontHandler item)
index
intitem
FontHandlerprotected override void RemoveItem(int index)
index
intprotected override void SetItem(int index, FontHandler item)
index
intitem
FontHandlerGets the FontHandler associated with a specified Font.
public bool TryGetFontHandler(Font font, out FontHandler pdfFont)
font
FontThe raw font.
pdfFont
FontHandlerOUT: the PdfFont object, or null.
True if a PdfFont was found, false otherwise.