PDFsharp-net6

XFontStretch

Namespace: PdfSharp.Drawing

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

public struct XFontStretch

Inheritance ObjectValueTypeXFontStretch
Implements IFormattable

Methods

FromOpenTypeStretch(Int32)

Creates a new instance of that corresponds to the OpenType usStretchClass value.

XFontStretch FromOpenTypeStretch(int stretchValue)

Parameters

stretchValue Int32
An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification.

Returns

XFontStretch
A new instance of .

ToOpenTypeStretch()

Returns a value that represents the OpenType usStretchClass for this object.

int ToOpenTypeStretch()

Returns

Int32
An integer value between 1 and 999 that corresponds to the usStretchClass definition in the OpenType specification.

Compare(XFontStretch, XFontStretch)

Compares two instances of objects.

int Compare(XFontStretch left, XFontStretch right)

Parameters

left XFontStretch
The first object to compare.

right XFontStretch
The second object to compare.

Returns

Int32
An Int32 value that represents the relationship between the two instances of .

Equals(XFontStretch)

Compares a object with the current object.

bool Equals(XFontStretch obj)

Parameters

obj XFontStretch
The instance of the object to compare for equality.

Returns

Boolean
if two instances are equal; otherwise, .

Equals(Object)

Compares a Object with the current object.

bool Equals(object obj)

Parameters

obj Object
The instance of the Object to compare for equality.

Returns

Boolean
if two instances are equal; otherwise, .

GetHashCode()

Retrieves the hash code for this object.

int GetHashCode()

Returns

Int32
An Int32 value representing the hash code for the object.

ToString()

Creates a String representation of the current object based on the current culture.

string ToString()

Returns

String
A String value representation of the object.