Språk

RectConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod

Definition

Avgör om en Rect kan konverteras till 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

Tillhandahåller sammanhangsbaserad information som krävs för konvertering.

destinationType
Type

Önskad typ som utvärderas Rect för konvertering.

Returer

true om en Rect kan konverteras till destinationType, annars , false.

Gäller för