FamilyNameCollection Class
Definition
public class FamilyNameCollection
Constructors
| Name | Description |
|---|---|
| FamilyNameCollection | Initializes a new instance of the Avalonia.Media.Fonts.FamilyNameCollection class. |
FamilyNameCollection Constructor
Initializes a new instance of the Avalonia.Media.Fonts.FamilyNameCollection class.
public FamilyNameCollection(string familyNames)
Parameters
familyNames string
The family names.
Exceptions
Methods
| Name | Description |
|---|---|
| Equals | Determines whether the specified object, is equal to this instance. |
| GetEnumerator | Returns an enumerator for the name collection. |
| 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.
GetEnumerator Method
Returns an enumerator for the name collection.
public Avalonia.Utilities.ImmutableReadOnlyListStructEnumerator<T><string> GetEnumerator()
Returns
Avalonia.Utilities.ImmutableReadOnlyListStructEnumerator<T><string>
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 |
|---|---|
| Count | No summary available. |
| HasFallbacks | Gets a value indicating whether fallbacks are defined. |
| Item | No summary available. |
| PrimaryFamilyName | Gets the primary family name. |
Count Property
public int Count { get; set; }
HasFallbacks Property
Gets a value indicating whether fallbacks are defined.
public bool HasFallbacks { get; set; }
Value
true if fallbacks are defined; otherwise, false.
Item Property
public string Item { get; set; }
PrimaryFamilyName Property
Gets the primary family name.
public string PrimaryFamilyName { get; set; }
Value
The primary family name.