Compartir a través de


ElementOperations.CanMergeElementGroupPrototype Method

Definition

Overloads

CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype)

Returns a value indicating whether MergeElementGroupPrototype can be performed.

CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype)

Gets a value indicating whether MergeElementGroupPrototype can be performed given the particular hoist and element group prototype. The CanMergeElementGroupPrototype process calls this overload for each root ProtoElement in the ElementGroupPrototype to determine if either the target
element or the target's associated model element (if applicable) can serve as the target of the element represented by the ProtoElement.

CanMergeElementGroupPrototype(ModelElement, ElementGroupPrototype)

Returns a value indicating whether MergeElementGroupPrototype can be performed.

public:
 virtual bool CanMergeElementGroupPrototype(Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public virtual bool CanMergeElementGroupPrototype (Microsoft.VisualStudio.Modeling.ModelElement targetElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member CanMergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
override this.CanMergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Public Overridable Function CanMergeElementGroupPrototype (targetElement As ModelElement, elementGroupPrototype As ElementGroupPrototype) As Boolean

Parameters

targetElement
ModelElement

The ModelElement that will serve as the target for the reconstituted elements from the ElementGroupPrototype.

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype that will be reconstituted in the target element's store.

Returns

A value indicating whether MergeElementGroupPrototype can be performed.

Applies to

CanMergeElementGroupPrototype(ModelElement, ProtoElementBase, ElementGroupPrototype)

Gets a value indicating whether MergeElementGroupPrototype can be performed given the particular hoist and element group prototype. The CanMergeElementGroupPrototype process calls this overload for each root ProtoElement in the ElementGroupPrototype to determine if either the target
element or the target's associated model element (if applicable) can serve as the target of the element represented by the ProtoElement.

protected public:
 virtual bool CanMergeElementGroupPrototype(Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement, Microsoft::VisualStudio::Modeling::ProtoElementBase ^ toMergeProtoElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
protected internal virtual bool CanMergeElementGroupPrototype (Microsoft.VisualStudio.Modeling.ModelElement targetElement, Microsoft.VisualStudio.Modeling.ProtoElementBase toMergeProtoElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member CanMergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
override this.CanMergeElementGroupPrototype : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Protected Friend Overridable Function CanMergeElementGroupPrototype (targetElement As ModelElement, toMergeProtoElement As ProtoElementBase, elementGroupPrototype As ElementGroupPrototype) As Boolean

Parameters

targetElement
ModelElement

The ModelElement that will serve as the target for the reconstituted elements from the ElementGroupPrototype.

toMergeProtoElement
ProtoElementBase

A root ProtoElement in the ElementGroupPrototype that, when reconstituted, will become merged into the target element. This parameter can be null, in which case the ElementGroupPrototype does not contain any ProtoElements.

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype containing the root ProtoElements.

Returns

a value indicating whether MergeElementGroupPrototype can be performed given the particular target and child.

Applies to