PDFsharp-net6

XFontStyle

Namespace: PdfSharp.Drawing

Defines a structure that represents the style of a font face as normal, italic, or oblique.

public struct XFontStyle

Inheritance ObjectValueTypeXFontStyle
Implements IFormattable

Methods

Equals(XFontStyle)

Compares a with the current instance for equality.

bool Equals(XFontStyle obj)

Parameters

obj XFontStyle
An instance of to compare for equality.

Returns

Boolean
to show the two instances are equal; otherwise, .

Equals(Object)

Compares an Object with the current instance for equality.

bool Equals(object obj)

Parameters

obj Object
An Object value that represents the to compare for equality.

Returns

Boolean
to show the two instances are equal; otherwise, .

GetHashCode()

Retrieves the hash code for this object.

int GetHashCode()

Returns

Int32
A 32-bit hash code, which is a signed integer.

ToString()

Creates a String that represents the current object and is based on the CultureInfo.CurrentCulture property information.

string ToString()

Returns

String
A String that represents the value of the object, such as “Normal”, “Italic”, or “Oblique”.

GetStyleForInternalConstruction()

int GetStyleForInternalConstruction()

Returns

Int32

FromGdiFontStyle(XFontStyleEx)

Simple hack to make it work… Returns Normal or Italic - bold, underline and such get lost here.

XFontStyle FromGdiFontStyle(XFontStyleEx style)

Parameters

style XFontStyleEx

Returns

XFontStyle