Show / Hide Table of Contents

Struct FontStyle

Represents the style of a font face (for instance, as normal or italic).

Implements
System.IFormattable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public struct FontStyle : IFormattable

Methods

| Improve this Doc View Source

Equals(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
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

Equals(FontStyle)

Compares this FontStyle structure to another FontStyle structure for equality.

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.

| Improve this Doc View Source

GetHashCode()

Retrieves the hash code for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

An integer hash value.

Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

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
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(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.

| Improve this Doc View Source

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 Source

IFormattable.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

Implements

System.IFormattable
  • Improve this Doc
  • View Source