IMergeElements.CanMerge(ProtoElementBase, ElementGroupPrototype) Method

Definition

Returns a value indicating whether the source element represented by the specified root ProtoElement can be added to this element.

C++
public:
 bool CanMerge(Microsoft::VisualStudio::Modeling::ProtoElementBase ^ rootElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);

Parameters

rootElement
ProtoElementBase

The root ProtoElement representing a source element. This can be null, in which case the ElementGroupPrototype does not contain an ProtoElements and the code should inspect the ElementGroupPrototype context information.

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype that contains the root ProtoElement.

Returns

true if the source element represented by the ProtoElement can be added to this target element.

Applies to

Produkt Versiounen
Visual Studio SDK 2017, 2019, 2022