Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BrushConverter::ConvertTo Method (ITypeDescriptorContext^, CultureInfo^, Object^, Type^)

 

Converts a Brush object to a specified type, using the specified context and culture information.

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

public:
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value,
	Type^ destinationType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

The conversion context.

culture
Type: System.Globalization::CultureInfo^

The current culture information.

value
Type: System::Object^

The Brush to convert.

destinationType
Type: System::Type^

The destination type that the value object is converted to.

Return Value

Type: System::Object^

An object that represents the converted value.

Exception Condition
NotSupportedException

value is NULL or it is not a Brush

-or-

destinationType is not a valid destination type.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft