Struct FontStretch
Describes the degree to which a font has been stretched, compared to the normal aspect ratio of that font.
Implements
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public struct FontStretch : IFormattable
Methods
| Improve this Doc View SourceEquals(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
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 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
Operators
| Improve this Doc View SourceEquality(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. |
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 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 |