PDFsharp-net6

XFontWeights

Namespace: PdfSharp.Drawing

Defines a set of static predefined XFontWeight values.

public static class XFontWeights

Inheritance ObjectXFontWeights

Properties

Thin

Specifies a “Thin” font weight.

public static XFontWeight Thin { get; }

Property Value

XFontWeight

ExtraLight

Specifies an “ExtraLight” font weight.

public static XFontWeight ExtraLight { get; }

Property Value

XFontWeight

UltraLight

Specifies an “UltraLight” font weight.

public static XFontWeight UltraLight { get; }

Property Value

XFontWeight

Light

Specifies a “Light” font weight.

public static XFontWeight Light { get; }

Property Value

XFontWeight

Normal

Specifies a “Normal” font weight.

public static XFontWeight Normal { get; }

Property Value

XFontWeight

Regular

Specifies a “Regular” font weight.

public static XFontWeight Regular { get; }

Property Value

XFontWeight

Medium

Specifies a “Medium” font weight.

public static XFontWeight Medium { get; }

Property Value

XFontWeight

SemiBold

Specifies a “SemiBold” font weight.

public static XFontWeight SemiBold { get; }

Property Value

XFontWeight

DemiBold

Specifies a “DemiBold” font weight.

public static XFontWeight DemiBold { get; }

Property Value

XFontWeight

Bold

Specifies a “Bold” font weight.

public static XFontWeight Bold { get; }

Property Value

XFontWeight

ExtraBold

Specifies a “ExtraBold” font weight.

public static XFontWeight ExtraBold { get; }

Property Value

XFontWeight

UltraBold

Specifies a “UltraBold” font weight.

public static XFontWeight UltraBold { get; }

Property Value

XFontWeight

Heavy

Specifies a “Heavy” font weight.

public static XFontWeight Heavy { get; }

Property Value

XFontWeight

Black

Specifies a “Black” font weight.

public static XFontWeight Black { get; }

Property Value

XFontWeight

ExtraBlack

Specifies a “ExtraBlack” font weight.

public static XFontWeight ExtraBlack { get; }

Property Value

XFontWeight

UltraBlack

Specifies a “UltraBlack” font weight.

public static XFontWeight UltraBlack { get; }

Property Value

XFontWeight

Methods

FontWeightStringToKnownWeight(String, IFormatProvider, XFontWeight&)

internal static bool FontWeightStringToKnownWeight(string s, IFormatProvider provider, XFontWeight& fontWeight)

Parameters

s String

provider IFormatProvider

fontWeight XFontWeight&

Returns

Boolean

FontWeightToString(Int32, String&)

internal static bool FontWeightToString(int weight, String& convertedValue)

Parameters

weight Int32

convertedValue String&

Returns

Boolean