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.

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

 

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

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^

Describes the context information of a type.

culture
Type: System.Globalization::CultureInfo^

Cultural-specific information that should be respected during conversion.

value
Type: System::Object^

The object being converted.

destinationType
Type: System::Type^

The type that this instance of FontFamily is converted to.

Return Value

Type: System::Object^

The object that is created from the converted instance of FontFamily.

Exception Condition
ArgumentException

Occurs if value or destinationType is not a valid type for conversion.

ArgumentNullException

Occurs if value or destinationType is null.

FontFamilyConverter supports conversion to and from the String type.

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