CornerRadiusConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 CornerRadius 值是否可以轉換為指定的型別。

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

參數

typeDescriptorContext
ITypeDescriptorContext

描述類型的內容資訊。

destinationType
Type

這個 CornerRadius 正受評估以轉換成的型別。

傳回

Boolean

如果 true 屬於類型 destinationType,則為 String,否則為 false

適用於