FontWeight
Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
[TypeConverter(typeof(FontWeightConverter))]
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 new instance of FontWeight that corresponds to the OpenType usWeightClass value.
public static FontWeight FromOpenTypeWeight(int weightValue)
An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification.
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.
public int ToOpenTypeWeight()
An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification.
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.