Show / Hide Table of Contents

Struct FontStretch

Describes the degree to which a font has been stretched, compared to the normal aspect ratio of that font.

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 FontStretch : IFormattable

Methods

| Improve this Doc View Source

Equals(Object)

Compares an object with the current FontStretch object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The instance of the object to compare for equality.

Returns
Type Description
System.Boolean

true if two instances are equal; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)
| 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 System.String representation of the current FontStretch object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String value representation of the object.

Overrides
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(FontStretch, FontStretch)

Compares two instances of FontStretch for equality.

Declaration
public static bool operator ==(FontStretch left, FontStretch right)
Parameters
Type Name Description
FontStretch left

First instance of FontStretch to compare.

FontStretch right

Second instance of FontStretch to compare.

Returns
Type Description
System.Boolean

true when the specified FontStretch objects are equal; otherwise, false.

| Improve this Doc View Source

Inequality(FontStretch, FontStretch)

Evaluates two instances of FontStretch to determine inequality.

Declaration
public static bool operator !=(FontStretch left, FontStretch right)
Parameters
Type Name Description
FontStretch left

The first instance of FontStretch to compare.

FontStretch right

The second instance of FontStretch to compare.

Returns
Type Description
System.Boolean

false if 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