Taal

FontWeightConverter.ConvertTo Methode

Definitie

Pogingen om een exemplaar van FontWeight een opgegeven type te converteren.

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

Parameters

context
ITypeDescriptorContext

Beschrijft de contextinformatie van een type.

culture
CultureInfo

Beschrijft het CultureInfo type dat wordt geconverteerd.

value
Object

Het exemplaar van FontWeight om te converteren.

destinationType
Type

Het type van FontWeight dit exemplaar wordt geconverteerd naar.

Retouren

Het object dat is gemaakt op basis van het geconverteerde exemplaar van FontWeight.

Kenmerken

Uitzonderingen

value Is null

– of –

value i is geen exemplaar van FontWeight

– of –

destinationType is geen geldig doeltype.

Van toepassing op