Struct FontWeight
Structure describes the degree of thickness in a font characters.
Inherited Members
Namespace: Telerik.Documents.Core.Fonts
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public struct FontWeight
Constructors
FontWeight(Int32)
Initializes a new instance of FontWeight struct.
Declaration
public FontWeight(int weight)
Parameters
System.Int32
weight
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToString()
Return string representation of the font`s weight.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Operators
Equality(FontWeight, FontWeight)
Checks whether two font weight objects are equal.
Declaration
public static bool operator ==(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
Returns true when the font weight values are equal for both objects, and false otherwise. |
GreaterThan(FontWeight, FontWeight)
Checks whether one instance is greater than the other.
Declaration
public static bool operator>(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
|
GreaterThanOrEqual(FontWeight, FontWeight)
Checks whether one instance is greater or equal to the other.
Declaration
public static bool operator >=(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
|
Inequality(FontWeight, FontWeight)
Checks whether two font weight objects are not equal.
Declaration
public static bool operator !=(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
Returns false when the font weight values are equal for both objects, and true otherwise. |
LessThan(FontWeight, FontWeight)
Checks whether one instance is less than the other.
Declaration
public static bool operator <(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
|
LessThanOrEqual(FontWeight, FontWeight)
Checks whether one instance is less or equal to the other.
Declaration
public static bool operator <=(FontWeight fw1, FontWeight fw2)
Parameters
FontWeight
fw1
First object to compare. |
FontWeight
fw2
Second object to compare. |
Returns
System.Boolean
|