Table of Contents

Struct XFontWeight

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

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

public readonly struct XFontWeight : IFormattable
Implements
Inherited Members

Properties

Weight

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

public int Weight { get; }

Property Value

int

Methods

Compare(XFontWeight, XFontWeight)

Compares the specified font weights.

public static int Compare(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

int

Equals(XFontWeight)

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

public bool Equals(XFontWeight obj)

Parameters

obj XFontWeight

Returns

bool

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

Serves as a hash function for this type.

public override int GetHashCode()

Returns

int

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

Operators

operator ==(XFontWeight, XFontWeight)

Implements the operator ==.

public static bool operator ==(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

bool

operator >(XFontWeight, XFontWeight)

Implements the operator >.

public static bool operator >(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

bool

operator >=(XFontWeight, XFontWeight)

Implements the operator >=.

public static bool operator >=(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

bool

operator !=(XFontWeight, XFontWeight)

Implements the operator !=.

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

Parameters

left XFontWeight
right XFontWeight

Returns

bool

operator <(XFontWeight, XFontWeight)

Implements the operator <.

public static bool operator <(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

bool

operator <=(XFontWeight, XFontWeight)

Implements the operator <=.

public static bool operator <=(XFontWeight left, XFontWeight right)

Parameters

left XFontWeight
right XFontWeight

Returns

bool