ColorConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
.NET Framework 2.0
Converts the given object to the converter's native type.
Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)
Assembly: System.Drawing (in system.drawing.dll)
public: virtual Object^ ConvertFrom ( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override
public Object ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value )
public override function ConvertFrom ( context : ITypeDescriptorContext, culture : CultureInfo, value : Object ) : Object
Not applicable.
Parameters
- context
A TypeDescriptor that provides a format context. You can use this object to get additional information about the environment from which this converter is being invoked.
- culture
A CultureInfo that specifies the culture to represent the color.
- value
The object to convert.
Return Value
An Object representing the converted value.When converting from a string to a Color the ColorConverter expects the unqualified color name; otherwise, an exception will occur in the conversion process. For example, you should pass "Blue", not "System.Drawing.Color.Blue" or "Color.Blue", to the ConvertFrom method.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: