PDFsharp-net6

XFontWeight

Namespace: PdfSharp.Drawing

Defines the density of a typeface, in terms of the lightness or heaviness of the strokes.

public struct XFontWeight

Inheritance ObjectValueTypeXFontWeight
Implements IFormattable

Properties

Weight

Gets the weight of the font, a value between 1 and 999.

public int Weight { get; }

Property Value

Int32

Methods

Compare(XFontWeight, XFontWeight)

Compares the specified font weights.

int Compare(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight

right XFontWeight

Returns

Int32

Equals(XFontWeight)

Determines whether the specified XFontWeight is equal to the current XFontWeight.

bool Equals(XFontWeight obj)

Parameters

obj XFontWeight

Returns

Boolean

Equals(Object)

Determines whether the specified Object is equal to the current Object.

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

Serves as a hash function for this type.

int GetHashCode()

Returns

Int32

ToString()

Returns a String that represents the current Object.

string ToString()

Returns

String

ConvertToString(String, IFormatProvider)

string ConvertToString(string format, IFormatProvider provider)

Parameters

format String

provider IFormatProvider

Returns

String

FromGdiFontStyle(XFontStyleEx)

Simple hack to make it work…

XFontWeight FromGdiFontStyle(XFontStyleEx style)

Parameters

style XFontStyleEx

Returns

XFontWeight