Editare

Partajați prin


FontFamilyConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Determines whether an instance of FontFamily can be converted to a different type.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parameters

context
ITypeDescriptorContext

Describes the context information of a type.

destinationType
Type

The desired type that this instance of FontFamily is being evaluated for conversion.

Returns

true if the converter can convert this instance of FontFamily to the specified type; otherwise, false.

Remarks

Conversion is possible only if context is a FontFamily type, and destinationType is a String type. In addition, the Source property for context cannot be null or equal to Empty, which identifies context as an anonymous FontFamily.

Applies to