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

 

Attempts to convert a specified object to an instance of TextDecorationCollection.

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

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

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

Describes the context information of a type.

culture
Type: System.Globalization::CultureInfo^

Describes the CultureInfo of the type being converted.

input
Type: System::Object^

The object being converted.

Return Value

Type: System::Object^

The instance of FontWeight created from the converted input.

Exception Condition
NotSupportedException

Occurs if input is null or is not a valid type for conversion.

.NET Framework
Available since 3.0
Return to top
Show: