편집

다음을 통해 공유


FontFamilyConverter.ConvertTo Method

Definition

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

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

Parameters

context
ITypeDescriptorContext

Describes the context information of a type.

culture
CultureInfo

Cultural-specific information that should be respected during conversion.

value
Object

The object being converted.

destinationType
Type

The type that this instance of FontFamily is converted to.

Returns

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

Exceptions

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

Occurs if value or destinationType is null.

Remarks

FontFamilyConverter supports conversion to and from the String type.

Applies to