語言

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。

適用於