LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertFromString(String) Method
See Also 
Leadtools Namespace > RasterColorTypeConverter Class > ConvertFromString Method : ConvertFromString(String) Method



value
A System.String containing the text value. This must be an HTML compatible string representation of a color.
value
A System.String containing the text value. This must be an HTML compatible string representation of a color.
Converts the specified text to a RasterColor object. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Shadows Function ConvertFromString( _
   ByVal value As String _
) As RasterColor
Visual Basic (Usage)Copy Code
Dim value As String
Dim value As RasterColor
 
value = RasterColorTypeConverter.ConvertFromString(value)
C# 
public new static RasterColor ConvertFromString( 
   string value
)
C++/CLI 
public:
new static RasterColor ConvertFromString( 
   String^ value
) 

Parameters

value
A System.String containing the text value. This must be an HTML compatible string representation of a color.

Return Value

The RasterColor this method creates. If the string is null (Nothing in Visual Basic), then an empty RasterColor will be returned with all color components set to zero.

Example

For an example, refer to RasterColorTypeConverter.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also