语言

RectConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

确定是否可以将 a Rect 转换为指定类型。

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

参数

context
ITypeDescriptorContext

提供转换所需的上下文信息。

destinationType
Type

正在计算此转换所需的类型 Rect 。

返回

true 如果可以转换为 a Rect ,则为 destinationType;否则为 false。

适用于