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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ td,
	CultureInfo^ ci,
	Object^ value
) override

Parameters

td
Type: System.ComponentModel::ITypeDescriptorContext^

Context information of a type.

ci
Type: System.Globalization::CultureInfo^

CultureInfo of the type being converted.

value
Type: System::Object^

The object being converted.

Return Value

Type: System::Object^

The instance of FontStyle created from the converted value.

Exception Condition
NotSupportedException

value is null or is not a valid type for conversion.

.NET Framework
Available since 3.0
Return to top
Show: