Table of Contents

Class FamilyNameCollection

Namespace
Avalonia.Media.Fonts
Assembly
Avalonia.Base.dll
public sealed class FamilyNameCollection : IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
Inheritance
FamilyNameCollection
Implements
Inherited Members

Constructors

FamilyNameCollection(string)

Initializes a new instance of the FamilyNameCollection class.

public FamilyNameCollection(string familyNames)

Parameters

familyNames string

The family names.

Exceptions

ArgumentException

familyNames

Properties

Count

public int Count { get; }

Property Value

int

HasFallbacks

Gets a value indicating whether fallbacks are defined.

public bool HasFallbacks { get; }

Property Value

bool

true if fallbacks are defined; otherwise, false.

this[int]

public string this[int index] { get; }

Parameters

index int

Property Value

string

PrimaryFamilyName

Gets the primary family name.

public string PrimaryFamilyName { get; }

Property Value

string

The primary family name.

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.

GetEnumerator()

Returns an enumerator for the name collection.

public ImmutableReadOnlyListStructEnumerator<string> GetEnumerator()

Returns

ImmutableReadOnlyListStructEnumerator<string>

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 ==(FamilyNameCollection?, FamilyNameCollection?)

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

Parameters

a FamilyNameCollection
b FamilyNameCollection

Returns

bool

operator !=(FamilyNameCollection?, FamilyNameCollection?)

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

Parameters

a FamilyNameCollection
b FamilyNameCollection

Returns

bool