Språk

GridLengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod

Definition

Avgör om en instans av GridLength kan konverteras till en annan typ.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

Parametrar

typeDescriptorContext
ITypeDescriptorContext

Beskriver kontextinformationen för en typ.

destinationType
Type

Önskad typ som den här instansen av GridLength utvärderas för konvertering.

Returer

true om konverteraren kan konvertera den här instansen till GridLength den angivna typen, falseannars .

Kommentarer

GridLengthConverterstöder konvertering till och från följande typer: , , , , , , , String, Decimal, , Single. DoubleInt16Int32Int64UInt16UInt32UInt64

Gäller för

Se även