Struct FontWeight
Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
Inherited Members
Namespace: Telerik.WinControls.Spreadsheet.UI
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public struct FontWeight : IFormattable
Methods
Compare(FontWeight, FontWeight)
Compares two instances of System.Windows.FontWeight.
Declaration
public static int Compare(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first System.Windows.FontWeight object to compare. |
FontWeight
right
The second System.Windows.FontWeight object to compare. |
Returns
System.Int32
An System.Int32 value that indicates the relationship between the two instances of System.Windows.FontWeight. When the return value is less than zero, |
Equals(Object)
Determines whether the current System.Windows.FontWeight object is equal to a specified object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare for equality. |
Returns
System.Boolean
true if the two instances are equal; otherwise, false. |
Overrides
Equals(FontWeight)
Determines whether the current System.Windows.FontWeight object is equal to a specified System.Windows.FontWeight object.
Declaration
public bool Equals(FontWeight obj)
Parameters
FontWeight
obj
The instance of System.Windows.FontWeight to compare for equality. |
Returns
System.Boolean
true if the two instances are equal; otherwise, false. |
FromOpenTypeWeight(Int32)
Creates a new instance of System.Windows.FontWeight that corresponds to the OpenType usWeightClass value.
Declaration
public static FontWeight FromOpenTypeWeight(int weightValue)
Parameters
System.Int32
weightValue
An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification. |
Returns
FontWeight
A new instance of System.Windows.FontWeight. |
GetHashCode()
Retrieves the hash code for this object.
Declaration
public override int GetHashCode()
Returns
System.Int32
A 32-bit hash code, which is a signed integer. |
Overrides
ToOpenTypeWeight()
Returns a value that represents the OpenType usWeightClass for the System.Windows.FontWeight object.
Declaration
public int ToOpenTypeWeight()
Returns
System.Int32
An integer value between 1 and 999 that corresponds to the usWeightClass definition in the OpenType specification. |
ToString()
Returns a text string that represents the value of the System.Windows.FontWeight object and is based on the System.Globalization.CultureInfo.CurrentCulture property information.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents the value of the System.Windows.FontWeight object, such as "Light", "Normal", or "UltraBold". |
Overrides
Operators
Equality(FontWeight, FontWeight)
Compares two instances of System.Windows.FontWeight for equality.
Declaration
public static bool operator ==(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
true if the instances of System.Windows.FontWeight are equal; otherwise, false. |
GreaterThan(FontWeight, FontWeight)
Evaluates two instances of System.Windows.FontWeight to determine whether one instance is greater than the other.
Declaration
public static bool operator>(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
true if |
GreaterThanOrEqual(FontWeight, FontWeight)
Evaluates two instances of System.Windows.FontWeight to determine whether one instance is greater than or equal to the other.
Declaration
public static bool operator >=(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
true if |
Inequality(FontWeight, FontWeight)
Evaluates two instances of System.Windows.FontWeight to determine inequality.
Declaration
public static bool operator !=(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
false if |
LessThan(FontWeight, FontWeight)
Evaluates two instances of System.Windows.FontWeight to determine whether one instance is less than the other.
Declaration
public static bool operator <(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
true if |
LessThanOrEqual(FontWeight, FontWeight)
Evaluates two instances of System.Windows.FontWeight to determine whether one instance is less than or equal to the other.
Declaration
public static bool operator <=(FontWeight left, FontWeight right)
Parameters
FontWeight
left
The first instance of System.Windows.FontWeight to compare. |
FontWeight
right
The second instance of System.Windows.FontWeight to compare. |
Returns
System.Boolean
true if |
Explicit Interface Implementations
IFormattable.ToString(String, IFormatProvider)
For a description of this member, see System.IFormattable.ToString(System.String, System.IFormatProvider).
Declaration
string IFormattable.ToString(string format, IFormatProvider provider)
Parameters
System.String
format
The System.String specifying the format to use.-or- null to use the default format defined for the type of the System.IFormattable implementation. |
System.IFormatProvider
provider
The System.IFormatProvider to use to format the value.-or- null to obtain the numeric format information from the current locale setting of the operating system. |
Returns
System.String
A System.String containing the value of the current instance in the specified format. |