CodeCarvings.Piczard
StringToColor Method
See Also  Send Feedback
CodeCarvings.Piczard.Helpers Namespace > StringConversionHelper Class : StringToColor Method

text
A string that represents a Color.
Converts a string to a Color.

Syntax

Visual Basic (Declaration)  
Public Shared Function StringToColor( _
   ByVal text As String _
) As Color
C#  
public static Color StringToColor( 
   string text
)

Parameters

text
A string that represents a Color.

Return Value

The value converted from the provided string.

Remarks

The string must contains the RGB or the ARGB components serialized as hexadecimal digits (e.g. "RRGGBB" or "AARRGGBB").

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.