Class DWriteFontList
The IDWriteFontList interface represents a list of fonts.
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public sealed class DWriteFontList : IDisposable, IDWriteReleasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the DWrite object interface.
Declaration
public object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Methods
| Edit this page View SourceDispose()
Immediately releases the unmanaged resources used by the DWrite object.
Declaration
public void Dispose()
GetFont(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 |
Release()
Releases the managed reference to the COM DWrite interface.
Declaration
public void Release()
ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
Returns
Type | Description |
---|---|
bool | A boolean |
Operators
| Edit this page View Sourceimplicit operator bool(DWriteFontList)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(DWriteFontList value)
Parameters
Type | Name | Description |
---|---|---|
DWriteFontList | value | A DWrite object. |
Returns
Type | Description |
---|---|
bool | A boolean |