Class FontFaceCollection
An ordered collection of font faces loaded from a font collection file (e.g. TTC).
Inherited Members
Namespace: DRIT.Drawing.Font.Core
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FontFaceCollection : IReadOnlyList<IFont>, IReadOnlyCollection<IFont>, IEnumerable<IFont>, IEnumerable
Constructors
FontFaceCollection(IReadOnlyList<IFont>)
Initializes a new FontFaceCollection from the specified list of fonts.
Declaration
public FontFaceCollection(IReadOnlyList<IFont> fonts)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<IFont> | fonts | The list of fonts in the collection. |
Properties
Count
An ordered collection of font faces loaded from a font collection file (e.g. TTC).
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the font face at the specified zero-based index.
Declaration
public IFont this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the font face to retrieve. |
Property Value
| Type | Description |
|---|---|
| IFont | The font face at |
Methods
GetEnumerator()
An ordered collection of font faces loaded from a font collection file (e.g. TTC).
Declaration
public IEnumerator<IFont> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IFont> |