Convert a hex string to a .NET Color object.
Namespace:
C1.Silverlight.ExtendedAssembly: C1.Silverlight.Extended (in C1.Silverlight.Extended.dll)
Syntax
C# |
---|
public static Color ToColor( string hexColor, byte alpha ) |
Visual Basic |
---|
Public Shared Function ToColor ( _ hexColor As String, _ alpha As Byte _ ) As Color |
Parameters
- hexColor
- Type: System..::..String
A hex string: "FFFFFF", "#000000"
- alpha
- Type: System..::..Byte
Represents the alpha channel of the color.