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 Object → ValueType → XFontStretch
Implements IFormattable
Creates a new instance of that corresponds to the OpenType usStretchClass value.
XFontStretch FromOpenTypeStretch(int stretchValue)
stretchValue
Int32
An integer value between one and nine that corresponds to the usStretchValue definition in the OpenType specification.
XFontStretch
A new instance of .
Returns a value that represents the OpenType usStretchClass for this object.
int ToOpenTypeStretch()
Int32
An integer value between 1 and 999 that corresponds to the usStretchClass definition in the OpenType specification.
Compares two instances of objects.
int Compare(XFontStretch left, XFontStretch right)
left
XFontStretch
The first object to compare.
right
XFontStretch
The second object to compare.
Int32
An Int32 value that represents the relationship between the two instances of .
Compares a object with the current object.
bool Equals(XFontStretch obj)
obj
XFontStretch
The instance of the object to compare for equality.
Boolean
if two instances are equal; otherwise, .
Compares a Object with the current object.
bool Equals(object obj)
obj
Object
The instance of the Object to compare for equality.
Boolean
if two instances are equal; otherwise, .
Retrieves the hash code for this object.
int GetHashCode()
Int32
An Int32 value representing the hash code for the object.
Creates a String representation of the current object based on the current culture.
string ToString()