Condividi tramite


Typeface.TryGetGlyphTypeface Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Retrieves the GlyphTypeface that corresponds to the Typeface.

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

Syntax

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

Parameters

  • 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.

Remarks

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

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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