語言

RectConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

判斷物件是否能從特定類型轉換為 的 Rect實例。

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

參數

context
ITypeDescriptorContext

提供轉換所需的情境資訊。

sourceType
Type

正在評估轉換的來源類型。

傳回

true若型別可轉換為 Rect;否則 。 false

適用於