Table of Contents

Struct FontCollectionKey

Namespace
Avalonia.Media.Fonts
Assembly
Avalonia.Base.dll
public readonly struct FontCollectionKey : IEquatable<FontCollectionKey>
Implements
Inherited Members

Constructors

FontCollectionKey(FontStyle, FontWeight, FontStretch)

public FontCollectionKey(FontStyle Style, FontWeight Weight, FontStretch Stretch)

Parameters

Style FontStyle
Weight FontWeight
Stretch FontStretch

Properties

Stretch

public FontStretch Stretch { get; init; }

Property Value

FontStretch

Style

public FontStyle Style { get; init; }

Property Value

FontStyle

Weight

public FontWeight Weight { get; init; }

Property Value

FontWeight

Methods

Deconstruct(out FontStyle, out FontWeight, out FontStretch)

public void Deconstruct(out FontStyle Style, out FontWeight Weight, out FontStretch Stretch)

Parameters

Style FontStyle
Weight FontWeight
Stretch FontStretch

Equals(FontCollectionKey)

public bool Equals(FontCollectionKey other)

Parameters

other FontCollectionKey

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(FontCollectionKey, FontCollectionKey)

public static bool operator ==(FontCollectionKey left, FontCollectionKey right)

Parameters

left FontCollectionKey
right FontCollectionKey

Returns

bool

operator !=(FontCollectionKey, FontCollectionKey)

public static bool operator !=(FontCollectionKey left, FontCollectionKey right)

Parameters

left FontCollectionKey
right FontCollectionKey

Returns

bool