[]
Gets the font family name of the text at the specified position.
public string GetFontFamilyName(int currentPosition)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to examine. |
Type | Description |
---|---|
string | the font family name |
Gets the font family name of the text at the specified position.
public string GetFontFamilyName(int currentPosition, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | The position of the text to examine. |
TextRange | textRange | The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font family name. |
Type | Description |
---|---|
string | the font family name |
HRESULT IDWriteTextLayout::GetFontFamilyName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* fontFamilyName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)
public void GetFontFamilyName(int currentPosition, IntPtr fontFamilyName, int nameSize, out TextRange textRange)
Type | Name | Description |
---|---|---|
int | currentPosition | |
IntPtr | fontFamilyName | |
int | nameSize | |
TextRange | textRange |