ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.DirectWrite Namespace / TextLayout Class / GetFontFamilyName Method / GetFontFamilyName(Int32,TextRange) Method
The position of the text to examine.
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.

In This Topic
    GetFontFamilyName(Int32,TextRange) Method
    In This Topic
    Gets the font family name of the text at the specified position.
    Syntax
    'Declaration
     
    Public Overloads Function GetFontFamilyName( _
       ByVal currentPosition As Integer, _
       ByRef textRange As TextRange _
    ) As String
    public string GetFontFamilyName( 
       int currentPosition,
       out TextRange textRange
    )

    Parameters

    currentPosition
    The position of the text to examine.
    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.

    Return Value

    the font family name
    See Also