IMergeElements::CanMerge Method (ProtoElementBase^, ElementGroupPrototype^)
Visual Studio 2015
Indicates whether the source element can be added to this element.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
bool CanMerge(
ProtoElementBase^ rootElement,
ElementGroupPrototype^ elementGroupPrototype
)
Parameters
- rootElement
-
Type:
Microsoft.VisualStudio.Modeling::ProtoElementBase^
The root ProtoElement representing a source element.
- elementGroupPrototype
-
Type:
Microsoft.VisualStudio.Modeling::ElementGroupPrototype^
The ElementGroupPrototype that contains the root ProtoElement.
Return Value
Type: System::Booleantrue if the source element represented by the ProtoElement can be added to this target element; otherwise, false.
The source element is represented by the specified root ProtoElement.
If the rootElement is null, the ElementGroupPrototype does not contain a ProtoElements property value and the code should inspect the ElementGroupPrototype context information.
Show: