ConversionHelpers.ToColor(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts value
to a Color.
public static System.Windows.Media.Color? ToColor (object value);
static member ToColor : obj -> Nullable<System.Windows.Media.Color>
Public Shared Function ToColor (value As Object) As Nullable(Of Color)
Parameters
Returns
The converted color, or null
if value
cannot be converted to a
Color.