FontFamily Class
Definition
public class FontFamily
Constructors
| Name | Description |
|---|---|
| FontFamily (2 overloads) | Initializes a new instance of the Avalonia.Media.FontFamily class. |
FontFamily overloads
FontFamily Constructor
Initializes a new instance of the Avalonia.Media.FontFamily class.
public FontFamily(string name)
Parameters
name string
The name of the Avalonia.Media.FontFamily.
FontFamily Constructor
Initializes a new instance of the Avalonia.Media.FontFamily class.
public FontFamily(Uri baseUri, string name)
Parameters
baseUri Uri
Specifies the base uri that is used to resolve font family assets.
name string
The name of the Avalonia.Media.FontFamily.
Exceptions
Methods
| Name | Description |
|---|---|
| Equals | No summary available. |
| GetHashCode | Returns a hash code for this instance. |
| Parse (2 overloads) | Parses a Avalonia.Media.FontFamily string. |
| ToString | Returns a string that represents this instance. |
Equals Method
public bool Equals(object obj)
Parameters
obj object
Returns
bool
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.
Parse overloads
Parse Method
Parses a Avalonia.Media.FontFamily string.
public Avalonia.Media.FontFamily Parse(string s)
Parameters
s string
The Avalonia.Media.FontFamily string.