RectangleDConverter.CanConvertFrom 方法 (ITypeDescriptorContext, Type)

返回该转换器是否可以使用指定的上下文将给定类型的对象转换为此转换器的类型。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

语法

声明
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)

参数

  • sourceType
    类型:System.Type
    表示类型的类型要强制转换为。

返回值

类型:System.Boolean

.NET Framework 安全性

请参见

参考

RectangleDConverter 类

CanConvertFrom 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间