Typeface.TryGetGlyphTypeface Method

Retrieves the GlyphTypeface that corresponds to the Typeface.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)


Public Function TryGetGlyphTypeface ( _
    <OutAttribute> ByRef glyphTypeface As GlyphTypeface _
) As Boolean
public bool TryGetGlyphTypeface(
    out GlyphTypeface glyphTypeface


  • glyphTypeface
    Type: System.Windows.Media.GlyphTypeface%
    A GlyphTypeface object that corresponds to this typeface, or a nulla null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if the typeface was constructed from a composite font.

Return Value

Type: System.Boolean
true if the out parameter is set to a GlyphTypeface object; otherwise, false.


A GlyphTypeface is a font face that directly corresponds to a font file on the disk. A Typeface, however, is a representation of a font face.

Version Information


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.