語言

ThicknessConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷型別轉換器是否能將 的 Thickness 實例轉換成不同型態。

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

類型轉換器評估此實例 Thickness 的轉換類型。

傳回

true若型別轉換器能將此ThicknessdestinationType實例轉換為;否則,。 false

適用於

另請參閱