Struct XFontStyle
Defines a structure that represents the style of a font face as normal, italic, or oblique. Note that this struct is new since PDFsharp 6.0. XFontStyle from prior version of PDFsharp is renamed to XFontStyleEx.
public readonly struct XFontStyle : IFormattable
- Implements
- Inherited Members
Methods
Equals(XFontStyle)
Compares a System.Windows.XFontStyle with the current System.Windows.XFontStyle instance for equality.
public bool Equals(XFontStyle obj)
Parameters
obj
XFontStyleAn instance of System.Windows.XFontStyle to compare for equality.
Returns
Equals(object?)
Compares an object with the current System.Windows.XFontStyle instance for equality.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Retrieves the hash code for this object.
public override int GetHashCode()
Returns
- int
A 32-bit hash code, which is a signed integer.
ToString()
Creates a string that represents the current System.Windows.XFontStyle object and is based on the CurrentCulture property information.
public override string ToString()
Returns
- string
A string that represents the value of the System.Windows.XFontStyle object, such as "Normal", "Italic", or "Oblique".
Operators
operator ==(XFontStyle, XFontStyle)
Compares two instances of System.Windows.XFontStyle for equality.
public static bool operator ==(XFontStyle left, XFontStyle right)
Parameters
left
XFontStyleThe first instance of System.Windows.XFontStyle to compare.
right
XFontStyleThe second instance of System.Windows.XFontStyle to compare.
Returns
operator !=(XFontStyle, XFontStyle)
Evaluates two instances of System.Windows.XFontStyle to determine inequality.
public static bool operator !=(XFontStyle left, XFontStyle right)
Parameters
left
XFontStyleThe first instance of System.Windows.XFontStyle to compare.
right
XFontStyleThe second instance of System.Windows.XFontStyle to compare.