ElementOperations.CanMergeElementGroupPrototype 方法 (ModelElement, ProtoElementBase, ElementGroupPrototype)

获取一 MergeElementGroupPrototype 是否的值可以为特定升降机和元素组原型。

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

语法

声明
Protected Friend Overridable Function CanMergeElementGroupPrototype ( _
    targetElement As ModelElement, _
    toMergeProtoElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean
protected internal virtual bool CanMergeElementGroupPrototype(
    ModelElement targetElement,
    ProtoElementBase toMergeProtoElement,
    ElementGroupPrototype elementGroupPrototype
)

参数

  • toMergeProtoElement
    类型:Microsoft.VisualStudio.Modeling.ProtoElementBase
    在中,时,重建,将变为合并到目标元素的 ElementGroupPrototype 的根 ProtoElement。,在 ElementGroupPrototype 不包含任何 ProtoElements 情况下,此参数可以为空。

返回值

类型:System.Boolean
指示是否 MergeElementGroupPrototype 的值可以为特定目标和子项。

备注

CanMergeElementGroupPrototype 处理调用每个的 ProtoElement 此重载在 ElementGroupPrototype 确定目标元素或目标关联的模型元素 (如果适用) 可以用作 ProtoElement 表示的元素的目标。

.NET Framework 安全性

请参见

参考

ElementOperations 类

CanMergeElementGroupPrototype 重载

Microsoft.VisualStudio.Modeling 命名空间