FontWeight
Represents a font weight as an OpenType usWeightClass value; equality and ordering use the numeric weight.
Definition
Namespace:Telerik.WinControls.UI.Legacy
Assembly:Telerik.WinControls.PdfViewer.dll
Syntax:
public struct FontWeight : IFormattable
Implements:
Methods
Compares two instances of FontWeight.
public static int Compare(FontWeight left, FontWeight right)
The first FontWeight object to compare.
rightFontWeightThe second FontWeight object to compare.
Returns:An int value that indicates the relationship between the two instances of FontWeight. When the return value is less than zero, left is less than right. When this value is zero, it indicates that both operands are equal. When the value is greater than zero, it indicates that left is greater than right.
Determines whether the current FontWeight object is equal to a specified FontWeight object.
public bool Equals(FontWeight obj)
The instance of FontWeight to compare for equality.
Returns:true if the two instances are equal; otherwise, false.
Determines whether the current FontWeight object is equal to a specified object.
Creates a font weight from the supplied OpenType usWeightClass value.
public static FontWeight FromOpenTypeWeight(int weightValue)
The numeric value to store; no range validation is performed.
Returns:A new instance of FontWeight.
Retrieves the hash code for this object.
public override int GetHashCode()
A 32-bit hash code, which is a signed integer.
Overrides:
Returns a value that represents the OpenType usWeightClass for the FontWeight object.
Returns a text string that represents the value of the FontWeight object and is based on the CurrentCulture property information.
public override string ToString()
A string that represents the value of the FontWeight object, such as "Light", "Normal", or "UltraBold".
Overrides:
Operators
Evaluates two instances of FontWeight to determine inequality.
public static bool operator !=(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:false if left is equal to right; otherwise, true.
Evaluates two instances of FontWeight to determine whether one instance is less than the other.
public static bool operator <(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:true if left is less than right; otherwise, false.
Evaluates two instances of FontWeight to determine whether one instance is less than or equal to the other.
public static bool operator <=(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:true if left is less than or equal to right; otherwise, false.
Compares two instances of FontWeight for equality.
public static bool operator ==(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:true if the instances of FontWeight are equal; otherwise, false.
Evaluates two instances of FontWeight to determine whether one instance is greater than the other.
public static bool operator >(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:true if left is greater than right; otherwise, false.
Evaluates two instances of FontWeight to determine whether one instance is greater than or equal to the other.
public static bool operator >=(FontWeight left, FontWeight right)
The first instance of FontWeight to compare.
rightFontWeightThe second instance of FontWeight to compare.
Returns:true if left is greater than or equal to right; otherwise, false.