CornerRadiusConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定值是否可以 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 。
返回
true 如果 destinationType 为类型 String,则为 ;否则为 false。