ModelElement.IMergeElements.CanMerge 方法

,如果此元素可与原型的内容,将返回 true。

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

语法

声明
Private Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean Implements IMergeElements.CanMerge
bool IMergeElements.CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)

参数

返回值

类型:System.Boolean

实现

IMergeElements.CanMerge(ProtoElementBase, ElementGroupPrototype)

.NET Framework 安全性

请参见

参考

ModelElement 类

Microsoft.VisualStudio.Modeling 命名空间

其他资源

自定义复制行为

如何:程序复制和粘贴行为 - 重定向

如何:添加拖放处理程序