FontSourceCollection
Overview
FontSourceCollection is a class in Aspose.PDF FOSS for .NET.
Inherits from: System.Collections.Generic.IEnumerable<FontSource>.
A collection of font sources used by FontRepository.
This class declares 8 methods for FontSourceCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, CopyTo, Delete, FontSourceCollection, GetEnumerator, Remove.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Count, IsSynchronized, SyncRoot.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of font sources in the collection. |
IsSynchronized | bool | Read | Gets the is synchronized. |
SyncRoot | object | Read | Gets the sync root. |
Methods
| Signature | Description |
|---|---|
FontSourceCollection() | Creates a collection holding the default sources: a SystemFontSource, plus the per-user Windows fonts folder when it exists. |
Add(fontSource: FontSource) | Adds a font source; a second SystemFontSource or a FolderFontSource for a folder already present (compared case-insensitively) is ignored. |
Contains(item: FontSource) | Returns true when the collection contains a source equal to the given one. |
Delete(fontSource: FontSource) | Removes the given font source, if present. |
Remove(item: FontSource) | Removes the given font source; returns true when it was found. |
CopyTo(array: FontSource[], index: int) | Copies the font sources into array, starting at the zero-based index. |
Clear() | Removes all font sources, including the default ones. |
GetEnumerator() | Calls GetEnumerator on this FontSourceCollection instance. |