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
left
XFontWeightright
XFontWeight
Returns
Equals(XFontWeight)
Determines whether the specified XFontWeight is equal to the current XFontWeight.
public bool Equals(XFontWeight obj)
Parameters
obj
XFontWeight
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
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
left
XFontWeightright
XFontWeight
Returns
operator >(XFontWeight, XFontWeight)
Implements the operator >.
public static bool operator >(XFontWeight left, XFontWeight right)
Parameters
left
XFontWeightright
XFontWeight
Returns
operator >=(XFontWeight, XFontWeight)
Implements the operator >=.
public static bool operator >=(XFontWeight left, XFontWeight right)
Parameters
left
XFontWeightright
XFontWeight
Returns
operator !=(XFontWeight, XFontWeight)
Implements the operator !=.
public static bool operator !=(XFontWeight left, XFontWeight right)
Parameters
left
XFontWeightright
XFontWeight
Returns
operator <(XFontWeight, XFontWeight)
Implements the operator <.
public static bool operator <(XFontWeight left, XFontWeight right)
Parameters
left
XFontWeightright
XFontWeight
Returns
operator <=(XFontWeight, XFontWeight)
Implements the operator <=.
public static bool operator <=(XFontWeight left, XFontWeight right)
Parameters
left
XFontWeightright
XFontWeight