Table of Contents

Struct XFontStyle

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

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 XFontStyle

An instance of System.Windows.XFontStyle to compare for equality.

Returns

bool

true to show the two instances are equal; otherwise, false.

Equals(object?)

Compares an object with the current System.Windows.XFontStyle instance for equality.

public override bool Equals(object? obj)

Parameters

obj object

An object value that represents the System.Windows.XFontStyle to compare for equality.

Returns

bool

true to show the two instances are equal; otherwise, false.

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 XFontStyle

The first instance of System.Windows.XFontStyle to compare.

right XFontStyle

The second instance of System.Windows.XFontStyle to compare.

Returns

bool

true to show the specified System.Windows.XFontStyle objects are equal; otherwise, false.

operator !=(XFontStyle, XFontStyle)

Evaluates two instances of System.Windows.XFontStyle to determine inequality.

public static bool operator !=(XFontStyle left, XFontStyle right)

Parameters

left XFontStyle

The first instance of System.Windows.XFontStyle to compare.

right XFontStyle

The second instance of System.Windows.XFontStyle to compare.

Returns

bool

false to show left is equal to right; otherwise, true.