From a hex code

Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Function FromHex( _ 
ByVal hex As String
) As Color
This language is not supported or no code example is available.
public Color FromHex( 
string hex 
)
This language is not supported or no code example is available.
public:  
Color FromHex( 
String^ hex 
)
This language is not supported or no code example is available.
public function FromHex( 
hex : String 
) : Color;
This language is not supported or no code example is available.

Parameters

hex
Type: string

<default>

Return Value

Type: Color

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1