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

 

Converts from an object of a given type to a Brush object.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

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

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

The conversion context.

culture
Type: System.Globalization::CultureInfo^

The culture information that applies to the conversion.

value
Type: System::Object^

The object to convert.

Return Value

Type: System::Object^

Returns a new Brush object if successful; otherwise, NULL.

Exception Condition
NotSupportedException

value is NULL or cannot be converted to a Brush.

.NET Framework
Available since 3.0
Return to top
Show: