FromHex


Summary

Attempts to convert a hex string to a Color.

Syntax

public static Color FromHex(string hex)

Parameters

NameDescription

Example 1

var color = Color.FromHex("#808080");