[]
Convert a hex string to a .NET Color object.
public static Color ToColor(string hexColor)
| Type | Name | Description |
|---|---|---|
| string | hexColor | A hex string: "FFFFFF", "#000000" |
| Type | Description |
|---|---|
| Color |
Convert a hex string to a .NET Color object.
public static Color ToColor(string hexColor, byte alpha)
| Type | Name | Description |
|---|---|---|
| string | hexColor | A hex string: "FFFFFF", "#000000" |
| byte | alpha | Represents the alpha channel of the color. |
| Type | Description |
|---|---|
| Color |