Aracılığıyla paylaş


FontWeightConverter.ConvertTo Yöntem

Tanım

bir örneğini FontWeight belirtilen türe dönüştürmeyi dener.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
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

Parametreler

context
ITypeDescriptorContext

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

culture
CultureInfo

CultureInfo Dönüştürülmekte olan türü açıklar.

value
Object

Dönüştürülecek örneği FontWeight .

destinationType
Type

Bu örneğinin FontWeight dönüştürüldüğü tür.

Döndürülenler

Object

dönüştürülen örneğinden FontWeightoluşturulan nesne.

Öznitelikler

Özel durumlar

valuenull

-veya- value i bir örnek değil FontWeight

-veya- destinationType geçerli bir hedef türü değil.

Şunlara uygulanır