Språk

FontStretchConverter.ConvertTo Metod

Definition

Försöker konvertera en instans av FontStretch till en angiven typ.

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

Parametrar

context
ITypeDescriptorContext

Kontextinformation av en typ.

culture
CultureInfo

CultureInfo av den typ som konverteras.

value
Object

Instansen av FontStretch att konvertera.

destinationType
Type

Typen som den här instansen av FontStretch konverteras till.

Returer

Objektet som skapades från den konverterade instansen av FontStretch.

Attribut

Undantag

value är null

-eller-

value är inte en instans av FontStretch

-eller-

destinationType är inte en giltig måltyp.

Gäller för