Struct FontStyle
Represents the style of a font face (for instance, as normal or italic).
Implements
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public struct FontStyle : IFormattable
Methods
| Improve this Doc View SourceEquals(Object)
Compares an object with the current FontStyle instance for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object that represents the FontStyle to compare for equality. |
Returns
Type | Description |
---|---|
System.Boolean | true to show the two instances are equal; otherwise, false. |
Overrides
Equals(FontStyle)
Declaration
public bool Equals(FontStyle fontStyle)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | fontStyle | An instance of FontStyle to compare for equality. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of FontStyle are equal; otherwise, false. |
GetHashCode()
Retrieves the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | An integer hash value. |
Overrides
ToString()
Creates a string that represents the current FontStyle object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the value of the FontStyle object. |
Overrides
Operators
| Improve this Doc View SourceEquality(FontStyle, FontStyle)
Compares two instances of FontStyle for equality.
Declaration
public static bool operator ==(FontStyle left, FontStyle right)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | left | The first instance of FontStyle to compare. |
FontStyle | right | The second instance of FontStyle to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified FontStyle objects are equal; otherwise, false. |
Inequality(FontStyle, FontStyle)
Evaluates two instances of FontStyle to determine inequality.
Declaration
public static bool operator !=(FontStyle left, FontStyle right)
Parameters
Type | Name | Description |
---|---|---|
FontStyle | left | The first instance of FontStyle to compare. |
FontStyle | right | The second instance of FontStyle to compare. |
Returns
Type | Description |
---|---|
System.Boolean | false to show left is equal to right; otherwise, true. |
Explicit Interface Implementations
| Improve this Doc View SourceIFormattable.ToString(String, IFormatProvider)
Declaration
string IFormattable.ToString(string format, IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.IFormatProvider | formatProvider |
Returns
Type | Description |
---|---|
System.String |