Struct XFontWeight
Defines the density of a typeface, in terms of the lightness or heaviness of the strokes.
public readonly struct XFontWeight : IFormattable
- Implements
- Inherited Members
Properties
Weight
Gets the weight of the font, a value between 1 and 999.
public int Weight { get; }
Property Value
Methods
Compare(XFontWeight, XFontWeight)
Compares the specified font weights.
public static int Compare(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
Equals(XFontWeight)
Determines whether the specified XFontWeight is equal to the current XFontWeight.
public bool Equals(XFontWeight obj)
Parameters
objXFontWeight
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
Serves as a hash function for this type.
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(XFontWeight, XFontWeight)
Implements the operator ==.
public static bool operator ==(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
operator >(XFontWeight, XFontWeight)
Implements the operator >.
public static bool operator >(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
operator >=(XFontWeight, XFontWeight)
Implements the operator >=.
public static bool operator >=(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
operator !=(XFontWeight, XFontWeight)
Implements the operator !=.
public static bool operator !=(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
operator <(XFontWeight, XFontWeight)
Implements the operator <.
public static bool operator <(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight
Returns
operator <=(XFontWeight, XFontWeight)
Implements the operator <=.
public static bool operator <=(XFontWeight left, XFontWeight right)
Parameters
leftXFontWeightrightXFontWeight