Extended Library for WPF and Silverlight | ComponentOne
C1.WPF.Extended Namespace / WebColor Class / ToColor Method / ToColor(String) Method
A hex string: "FFFFFF", "#000000"

In This Topic
    ToColor(String) Method
    In This Topic
    Convert a hex string to a .NET Color object.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ToColor( _
       ByVal hexColor As String _
    ) As Color
    public static Color ToColor( 
       string hexColor
    )

    Parameters

    hexColor
    A hex string: "FFFFFF", "#000000"
    See Also