FontFamily Class

Namespace
Avalonia.Media
Base Types
  • object
graph BT Type-->Base0["object"] Type["FontFamily"] class Type type-node

Syntax

public sealed class FontFamily

Constructors

Name Summary
FontFamily(string) Initializes a new instance of the FontFamily class.
FontFamily(Uri, string) Initializes a new instance of the FontFamily class.

Fields

Name Constant Value Summary
DefaultFontFamilyName $Default
static

Properties

Name Value Summary
Default FontFamily
Represents the default font family
static
FamilyNames FamilyNameCollection
Gets the family names.
IsDefault bool
Returns True if this instance is the system's default.
Key FontFamilyKey
Gets the key for associated assets.
Name string
Gets the primary family name of the font family.

Methods

Name Value Summary
Equals(object) bool
GetHashCode() int
Returns a hash code for this instance.
Parse(string) FontFamily
Parses a FontFamily string.
static
Parse(string, Uri) FontFamily
Parses a FontFamily string.
static
ToString() string
Returns a string that represents this instance.

Operators

Name Value Summary
implicit operator FontFamily(string) FontFamily
operator !=(FontFamily, FontFamily) bool
operator ==(FontFamily, FontFamily) bool