Share via


Typeface.TryGetGlyphTypeface(GlyphTypeface) 方法

定义

检索与 GlyphTypeface 对应的 Typeface

public:
 bool TryGetGlyphTypeface([Runtime::InteropServices::Out] System::Windows::Media::GlyphTypeface ^ % glyphTypeface);
public bool TryGetGlyphTypeface (out System.Windows.Media.GlyphTypeface glyphTypeface);
member this.TryGetGlyphTypeface : GlyphTypeface -> bool
Public Function TryGetGlyphTypeface (ByRef glyphTypeface As GlyphTypeface) As Boolean

参数

glyphTypeface
GlyphTypeface

与此字样对应的 GlyphTypeface 对象,如果该字样是通过复合字体构造的,则为 null

返回

如果将输出参数设置为 GlyphTypeface 值,则为 true,否则为 false

注解

GlyphTypeface 直接对应于磁盘上的字体文件的字体。 Typeface但是, 是字体的表示形式。

适用于