FontFamily Class

Definition

Represents a family of related fonts.

/// [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]*" ... />
Inheritance
Object IInspectable FontFamily
Attributes

Constructors

FontFamily(String)

Initializes a new instance of the FontFamily class from the specified font family string.

Properties

Source

Gets the font family name that is used to construct the FontFamily object.

XamlAutoFontFamily

Gets the default font family based on an app's language settings.

Applies to

See also