Struct FontWeight
Refers to the density of a typeface, in terms of the lightness or heaviness
of the strokes.
Implements
System.IFormattable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: OpenSilver.dll
Syntax
public struct FontWeight : IFormattable
Fields
|
Improve this Doc
View Source
Weight
The font weight expressed as a numeric value. See Remarks.
Declaration
Field Value
Type |
Description |
System.UInt16 |
|
Methods
|
Improve this Doc
View Source
Compare(FontWeight, FontWeight)
Compares two font weight values and returns an indication of their relative values.
Declaration
public static int Compare(FontWeight left, FontWeight right)
Parameters
Type |
Name |
Description |
FontWeight |
left |
First object to compare.
|
FontWeight |
right |
Second object to compare.
|
Returns
Type |
Description |
System.Int32 |
A 32-bit signed integer indicating the lexical relationship between the two comparands.
When the return value is less than zero this means that left is less than right.
When the return value is zero this means that left is equal to right.
When the return value is greater than zero this means that left is greater than right.
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
Equals(FontWeight)
Declaration
public bool Equals(FontWeight fontWeight)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Equality(FontWeight, FontWeight)
Declaration
public static bool operator ==(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThan(FontWeight, FontWeight)
Declaration
public static bool operator>(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThanOrEqual(FontWeight, FontWeight)
Declaration
public static bool operator >=(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(FontWeight, FontWeight)
Declaration
public static bool operator !=(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThan(FontWeight, FontWeight)
Declaration
public static bool operator <(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThanOrEqual(FontWeight, FontWeight)
Declaration
public static bool operator <=(FontWeight left, FontWeight right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
Declaration
string IFormattable.ToString(string format, IFormatProvider formatProvider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
System.IFormatProvider |
formatProvider |
|
Returns
Type |
Description |
System.String |
|
Implements
System.IFormattable
Extension Methods