Xceed Workbooks for .NET v1.4 Documentation
ToColor(String) Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > ColorHelper Class > ToColor Method : ToColor(String) Method
The string that represents the hex Color. For example: "#FFF000".
Converts an HTML string Color into a Color.
Syntax
'Declaration

 

Public Overloads Shared Function ToColor( _

   ByVal htmlColor As String _

) As Color
'Usage

 

Dim htmlColor As String

Dim value As Color

 

value = ColorHelper.ToColor(htmlColor)
public static Color ToColor( 

   string htmlColor

)

Parameters

htmlColor
The string that represents the hex Color. For example: "#FFF000".

Return Value

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

Reference

ColorHelper Class
ColorHelper Members
Overload List