[]
Gets the font collection associated with the text at the specified position.
public FontCollection GetFontCollection(int currentPosition)
| Type | Name | Description |
|---|---|---|
| int | currentPosition | The position of the text to inspect. |
| Type | Description |
|---|---|
| FontCollection | a reference to the current font collection. |
HRESULT IDWriteTextLayout::GetFontCollection([In] unsigned int currentPosition,[Out] IDWriteFontCollection** fontCollection,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public FontCollection GetFontCollection(int currentPosition, out TextRange textRange)
| Type | Name | Description |
|---|---|---|
| int | currentPosition | |
| TextRange | textRange |
| Type | Description |
|---|---|
| FontCollection |