WebPlanner Programmer's Guide

Convert Members

Methods
 


Converts various types to and from string in a culture-independent way.

The following tables list the members exposed by the Convert type.

 Public Methods

  Name Description

FromBoolean

Converts the specified boolean value to string.

FromColor

Converts the specified Color to string. The resulting string is in the format #AARRGGBB.

FromDouble

Converts the specified Double to string.

FromImage

Converts the specified Image to a string.

FromInt16

Converts the specified Int16 to string.

FromInt32

Converts the specified Int32 to string.

FromInt64

Converts the specified Int64 to string.

FromSingle

Converts the specified Single to string.

FromStream

Converts the specified Stream to a string.

ToBoolean

Converts the specified string to a boolean.

ToColor

Converts the specified string to Color. The string should be in the format #AARRGGBB.

ToDouble

Converts the specified string to Double.

ToEnum

Converts the specified string value to the corresponding field of the specified enum type.

ToImage

Converts the specified string to an Image.

ToInt16

Converts the specified string to Int16.

ToInt32

Converts the specified string to Int32.

ToInt64

Converts the specified string to Int64.

ToSingle

Converts the specified string to Single.

ToStream

Converts the specified string to a Stream.

 See Also