[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextLayout.GetFontFamilyName

GetFontFamilyName Method

GetFontFamilyName(int)

Gets the font family name of the text at the specified position.

Declaration
public string GetFontFamilyName(int currentPosition)
Parameters
Type Name Description
int currentPosition

The position of the text to examine.

Returns
Type Description
string

the font family name

GetFontFamilyName(int, out TextRange)

Gets the font family name of the text at the specified position.

Declaration
public string GetFontFamilyName(int currentPosition, out TextRange textRange)
Parameters
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.

Returns
Type Description
string

the font family name

GetFontFamilyName(int, IntPtr, int, out TextRange)

HRESULT IDWriteTextLayout::GetFontFamilyName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* fontFamilyName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange)

Declaration
public void GetFontFamilyName(int currentPosition, IntPtr fontFamilyName, int nameSize, out TextRange textRange)
Parameters
Type Name Description
int currentPosition
IntPtr fontFamilyName
int nameSize
TextRange textRange