Struct FontCollectionKey
- Namespace
- Avalonia.Media.Fonts
- Assembly
- Avalonia.Base.dll
public readonly struct FontCollectionKey : IEquatable<FontCollectionKey>
- Implements
-
- Inherited Members
-
Constructors
public FontCollectionKey(FontStyle Style, FontWeight Weight, FontStretch Stretch)
Parameters
Style
FontStyle
Weight
FontWeight
Stretch
FontStretch
Properties
public FontStretch Stretch { get; init; }
Property Value
- FontStretch
public FontStyle Style { get; init; }
Property Value
- FontStyle
public FontWeight Weight { get; init; }
Property Value
- FontWeight
Methods
public void Deconstruct(out FontStyle Style, out FontWeight Weight, out FontStretch Stretch)
Parameters
Style
FontStyle
Weight
FontWeight
Stretch
FontStretch
public bool Equals(FontCollectionKey other)
Parameters
other
FontCollectionKey
Returns
- bool
public override bool Equals(object obj)
Parameters
obj
object
Returns
- bool
public override int GetHashCode()
Returns
- int
public override string ToString()
Returns
- string
Operators
public static bool operator ==(FontCollectionKey left, FontCollectionKey right)
Parameters
left
FontCollectionKey
right
FontCollectionKey
Returns
- bool
public static bool operator !=(FontCollectionKey left, FontCollectionKey right)
Parameters
left
FontCollectionKey
right
FontCollectionKey
Returns
- bool