FontFamilyConverter.CanConvertTo(ITypeDescriptorContext, Type) Yöntem

Tanım

bir örneğinin FontFamily farklı bir türe dönüştürülip dönüştürülemeyeceğini belirler.

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

Parametreler

context
ITypeDescriptorContext

Bir türün bağlam bilgilerini açıklar.

destinationType
Type

Bu örneğinin FontFamily dönüştürme için değerlendirildiği istenen tür.

Döndürülenler

true dönüştürücü bu örneğini FontFamily belirtilen türe dönüştürebiliyorsa; aksi takdirde , false.

Açıklamalar

Dönüştürme yalnızca bir türse ve destinationType bir FontFamilyString türse mümkündürcontext. Ayrıca, Source için context özelliği null veya anonim FontFamilyolarak tanımlanan context değerine eşit Emptyolamaz.

Şunlara uygulanır