Skip to main content

FontFamilyKey Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Represents an identifier for a Avalonia.Media.FontFamily

public class FontFamilyKey

Inheritance: object -> FontFamilyKey

Constructors​

NameDescription
FontFamilyKeyCreates a new instance of Avalonia.Media.Fonts.FontFamilyKey

FontFamilyKey Constructor​

Creates a new instance of Avalonia.Media.Fonts.FontFamilyKey

public FontFamilyKey(Uri source, Uri baseUri)

Parameters​

source Uri

baseUri Uri

Methods​

NameDescription
EqualsDetermines whether the specified object, is equal to this instance.
GetHashCodeReturns a hash code for this instance.
ToStringReturns a string that represents this instance.

Equals Method​

Determines whether the specified object, is equal to this instance.

public bool Equals(object obj)

Parameters​

obj object

The object to compare with this instance.

Returns​

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode Method​

Returns a hash code for this instance.

public int GetHashCode()

Returns​

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString Method​

Returns a string that represents this instance.

public string ToString()

Returns​

string

A string that represents this instance.

Properties​

NameDescription
BaseUriA base URI to use if Avalonia.Media.Fonts.FontFamilyKey.Source is relative
SourceSource of stored font asset that belongs to a Avalonia.Media.FontFamily

BaseUri Property​

A base URI to use if Avalonia.Media.Fonts.FontFamilyKey.Source is relative

public Uri BaseUri { get; set; }

Source Property​

Source of stored font asset that belongs to a Avalonia.Media.FontFamily

public Uri Source { get; set; }