FontFamilyConverter.CanConvertTo(ITypeDescriptorContext, Type) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.