Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NColor Structure / ParseHex Method


In This Topic
    ParseHex Method
    In This Topic
    Create a color from a string in HEX format (e.g. "RRGGBB" or "#RRGGBB"). Throws an exception if the parsing fails.
    Syntax
    'Declaration
     
    
    Public Shared Function ParseHex( _
       ByVal str As System.String _
    ) As NColor
    'Usage
     
    
    Dim str As System.String
    Dim value As NColor
     
    value = NColor.ParseHex(str)
    public static NColor ParseHex( 
       System.string str
    )

    Parameters

    str

    Return Value

    The resulting color.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also