Skip to main content

FamilyNameCollection Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia
public class FamilyNameCollection

Inheritance: object -> FamilyNameCollection

Implements: IEnumerable<string>, IReadOnlyCollection<string>, IReadOnlyList<string>, IEnumerable

Constructors​

NameDescription
FamilyNameCollectionInitializes 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​

NameDescription
EqualsDetermines whether the specified object, is equal to this instance.
GetEnumeratorReturns an enumerator for the name collection.
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.

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​

NameDescription
CountNo summary available.
HasFallbacksGets a value indicating whether fallbacks are defined.
ItemNo summary available.
PrimaryFamilyNameGets 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.