Class DWriteFontList
The IDWriteFontList interface represents a list of fonts.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
[SecurityCritical]
public class DWriteFontList : DXComObject, IDisposable
Constructors
| Edit this page View SourceDWriteFontList(nint)
Initializes a new instance of the DWriteFontList class.
Declaration
public DWriteFontList(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDWriteFontListGuid
The interface GUID.
Declaration
public static readonly Guid DWriteFontListGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceGetFont(uint)
Gets a font given its zero-based index.
Declaration
public DWriteFont GetFont(uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | Zero-based index of the font in the font list. |
Returns
| Type | Description |
|---|---|
| DWriteFont |
GetFontCollection()
Gets the font collection that contains the fonts.
Declaration
public DWriteFontCollection GetFontCollection()
Returns
| Type | Description |
|---|---|
| DWriteFontCollection |
GetFontCount()
Gets the number of fonts in the font list.
Declaration
public uint GetFontCount()
Returns
| Type | Description |
|---|---|
| uint |