Språk

DataGridLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod

Definition

Avgör om en instans av DataGridLength klassen kan konverteras till en instans av den angivna typen.

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

Parametrar

context
ITypeDescriptorContext

Ett objekt som tillhandahåller en formatkontext.

destinationType
Type

Den typ som ska konverteras till.

Returer

trueom konverteraren kan utföra konverteringen; annars . false

Gäller för