FontFamilyKey Class
Definition
Represents an identifier for a Avalonia.Media.FontFamily
public class FontFamilyKey
Constructors
| Name | Description |
|---|---|
| FontFamilyKey | Creates 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
| Name | Description |
|---|---|
| Equals | Determines whether the specified object, is equal to this instance. |
| GetHashCode | Returns a hash code for this instance. |
| ToString | Returns 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
| Name | Description |
|---|---|
| BaseUri | A base URI to use if Avalonia.Media.Fonts.FontFamilyKey.Source is relative |
| Source | Source 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; }