Share via


ModelElement.IMergeElements.CanMerge Method

Returns true if this element can merge with the content of the prototype.

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

Syntax

'Declaration
Private Function CanMerge ( _
    rootElement As ProtoElementBase, _
    elementGroupPrototype As ElementGroupPrototype _
) As Boolean Implements IMergeElements.CanMerge
bool IMergeElements.CanMerge(
    ProtoElementBase rootElement,
    ElementGroupPrototype elementGroupPrototype
)
private:
virtual bool CanMerge(
    ProtoElementBase^ rootElement, 
    ElementGroupPrototype^ elementGroupPrototype
) sealed = IMergeElements::CanMerge
private abstract CanMerge : 
        rootElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
private override CanMerge : 
        rootElement:ProtoElementBase * 
        elementGroupPrototype:ElementGroupPrototype -> bool 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean

Implements

IMergeElements.CanMerge(ProtoElementBase, ElementGroupPrototype)

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace

Other Resources

Customizing Copy Behavior

How to: Program Copy and Paste Behavior - redirect

How to: Add a Drag-and-Drop Handler