Table of Contents

Class XColorResourceManager

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Manages the localization of the color class.

public class XColorResourceManager
Inheritance
XColorResourceManager
Inherited Members

Constructors

XColorResourceManager()

Initializes a new instance of the XColorResourceManager class.

public XColorResourceManager()

XColorResourceManager(CultureInfo)

Initializes a new instance of the XColorResourceManager class.

public XColorResourceManager(CultureInfo cultureInfo)

Parameters

cultureInfo CultureInfo

The culture info.

Methods

GetKnownColor(uint)

Gets a known color from an ARGB value. Throws an ArgumentException if the value is not a known color.

public static XKnownColor GetKnownColor(uint argb)

Parameters

argb uint

Returns

XKnownColor

GetKnownColors(bool)

Gets all known colors.

public static XKnownColor[] GetKnownColors(bool includeTransparent)

Parameters

includeTransparent bool

Indicates whether to include the color Transparent.

Returns

XKnownColor[]

ToColorName(XColor)

Converts a color to a localized color name or an ARGB value.

public string ToColorName(XColor color)

Parameters

color XColor

Returns

string

ToColorName(XKnownColor)

Converts a known color to a localized color name.

public string ToColorName(XKnownColor knownColor)

Parameters

knownColor XKnownColor

Returns

string