FontCollection

FontCollection

Overview

FontCollection is a class in Aspose.PDF FOSS for .NET. Inherits from: IEnumerable<Font>.

Collection of fonts referenced by a page.

This class provides 6 methods for working with FontCollection objects in .NET programs. Available methods include: Add, Contains, CopyTo, GetEnumerator, Remove. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Count, IsReadOnly, IsSynchronized, SyncRoot.

Properties

NameTypeAccessDescription
CountintReadGets the count.
IsReadOnlyboolReadGets the is read only.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.

Methods

SignatureDescription
GetEnumerator()Calls GetEnumerator on this FontCollection instance.
Contains(item: Font)Calls Contains on this FontCollection instance.
Contains(name: string)
CopyTo(array: Font[], index: int)Calls CopyTo on this FontCollection instance.
Remove(item: Font)Calls Remove on this FontCollection instance.
Add(newFont: Font, resName: string)Add a font and emit the PDF resource name assigned to it (e.g.

See Also