Table of Contents

Class FontFamilyKey

Namespace
Avalonia.Media.Fonts
Assembly
Avalonia.Base.dll

Represents an identifier for a FontFamily

public class FontFamilyKey
Inheritance
FontFamilyKey
Inherited Members

Constructors

FontFamilyKey(Uri, Uri?)

Creates a new instance of FontFamilyKey

public FontFamilyKey(Uri source, Uri? baseUri = null)

Parameters

source Uri
baseUri Uri

Properties

BaseUri

A base URI to use if Source is relative

public Uri? BaseUri { get; }

Property Value

Uri

Source

Source of stored font asset that belongs to a FontFamily

public Uri Source { get; }

Property Value

Uri

Methods

Equals(object?)

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

public override 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()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

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

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.

Operators

operator ==(FontFamilyKey?, FontFamilyKey?)

public static bool operator ==(FontFamilyKey? a, FontFamilyKey? b)

Parameters

a FontFamilyKey
b FontFamilyKey

Returns

bool

operator !=(FontFamilyKey?, FontFamilyKey?)

public static bool operator !=(FontFamilyKey? a, FontFamilyKey? b)

Parameters

a FontFamilyKey
b FontFamilyKey

Returns

bool