Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / ColorHelper Class / ToArgb Method / ToArgb(String) Method
The string that represents the hex color; for example: "#FFF000".


In This Topic
    ToArgb(String) Method
    In This Topic
    Converts an HTML string color into an int.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ToArgb( _
       ByVal htmlColor As String _
    ) As Integer
    'Usage
     
    
    Dim htmlColor As String
    Dim value As Integer
     
    value = ColorHelper.ToArgb(htmlColor)
    public static int ToArgb( 
       string htmlColor
    )

    Parameters

    htmlColor
    The string that represents the hex color; for example: "#FFF000".

    Return Value

    The int that represents the converted color.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also