Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / ColorHelper Class / ToHtmlColor Method / ToHtmlColor(Int32,Int32,Int32,Int32) Method
The int that represents the alpha part of the color.
The int that represents the red part of the color.
The int that represents the green part of the color.
The int that represents the blue part of the color.


In This Topic
    ToHtmlColor(Int32,Int32,Int32,Int32) Method
    In This Topic
    Converts 4 int values into an HTML string.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ToHtmlColor( _
       ByVal a As Integer, _
       ByVal r As Integer, _
       ByVal g As Integer, _
       ByVal b As Integer _
    ) As String
    'Usage
     
    
    Dim a As Integer
    Dim r As Integer
    Dim g As Integer
    Dim b As Integer
    Dim value As String
     
    value = ColorHelper.ToHtmlColor(a, r, g, b)
    public static string ToHtmlColor( 
       int a,
       int r,
       int g,
       int b
    )

    Parameters

    a
    The int that represents the alpha part of the color.
    r
    The int that represents the red part of the color.
    g
    The int that represents the green part of the color.
    b
    The int that represents the blue part of the color.

    Return Value

    The HTML string 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