A Sandcastle Documented Class Library

# ColorHelper GetColorFromHex Method

Gets a object from a hex value string.

Namespace: Dundas.BI.Utility
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public static Color GetColorFromHex(
    	string hexValue
    )

    Public Shared Function GetColorFromHex (
    	hexValue As String
    ) As Color

    public:
    static Color GetColorFromHex(
    	String^ hexValue
    )

    static member GetColorFromHex :
            hexValue : string -> Color

#### Parameters

hexValue
  Type: System
  String
  Hex value representation of a color.

#### Return Value

Type: Color
The color defined by the hex value.
Exceptions

Exception | Condition
--- | ---
ArgumentException | hexValue does not contain valid hex representation of a color.

See Also

#### Reference

ColorHelper Class
Dundas.BI.Utility Namespace