IconConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

 

Converts a specified object to an Icon.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

A CultureInfo that holds information about a specific culture.

value
Type: System::Object^

The Object to be converted.

Return Value

Type: System::Object^

If this method succeeds, it returns the Icon that it created by converting the specified object. Otherwise, it throws an exception.

Exception Condition
NotSupportedException

The conversion could not be performed.

.NET Framework
Available since 1.1
Return to top
Show: