ElementOperations::CanMergeElementGroupPrototype Method (ModelElement^, ProtoElementBase^, ElementGroupPrototype^)

 

Gets a value indicating whether MergeElementGroupPrototype can be performed given the particular hoist and element group prototype.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public protected:
virtual bool CanMergeElementGroupPrototype(
	ModelElement^ targetElement,
	ProtoElementBase^ toMergeProtoElement,
	ElementGroupPrototype^ elementGroupPrototype
)

Parameters

targetElement
Type: Microsoft.VisualStudio.Modeling::ModelElement^

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

toMergeProtoElement
Type: Microsoft.VisualStudio.Modeling::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
Type: Microsoft.VisualStudio.Modeling::ElementGroupPrototype^

The ElementGroupPrototype containing the root ProtoElements.

Return Value

Type: System::Boolean

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

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.

Return to top
Show: