Condividi tramite


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.

public:
 bool CanMerge(Microsoft::VisualStudio::Modeling::ProtoElementBase ^ rootElement, Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public bool CanMerge (Microsoft.VisualStudio.Modeling.ProtoElementBase rootElement, Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
abstract member CanMerge : Microsoft.VisualStudio.Modeling.ProtoElementBase * Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Public Function CanMerge (rootElement As ProtoElementBase, elementGroupPrototype As ElementGroupPrototype) As Boolean

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