FontFamily 类

定义

表示一系列相关字体。

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FontFamily
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class FontFamily
Public Class FontFamily
<FontFamily>fontFamilyName[,fallbackFontFamilyName]*</FontFamily>
- or -
<object FontFamily="fontFamilyName[,fallbackFontFamilyName]*" ... />
-or-
<object FontFamily="[uri]fontFamilyName[,[uri]fallbackFontFamilyName]*" ... />
-or-
<object FontFamily="embeddedUri#fontFamilyName[,[uri]fallbackFontFamilyName]*" ... />
继承
Object IInspectable FontFamily
属性

构造函数

FontFamily(String)

从指定的字体系列字符串初始化 FontFamily 类的新实例。

属性

Source

获取用于构造 FontFamily 对象的字体 系列名称。

XamlAutoFontFamily

根据应用的语言设置获取默认字体系列。

适用于

另请参阅