Partager via


ElementOperations.CanMerge(ModelElement, IDataObject) Method

Definition

Returns a value indicating whether the ElementGroupPrototype from the IDataObject can be merged (i.e., pasted or dropped) into the target ModelElement.

public:
 virtual bool CanMerge(Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement, System::Windows::Forms::IDataObject ^ data);
public virtual bool CanMerge (Microsoft.VisualStudio.Modeling.ModelElement targetElement, System.Windows.Forms.IDataObject data);
abstract member CanMerge : Microsoft.VisualStudio.Modeling.ModelElement * System.Windows.Forms.IDataObject -> bool
override this.CanMerge : Microsoft.VisualStudio.Modeling.ModelElement * System.Windows.Forms.IDataObject -> bool
Public Overridable Function CanMerge (targetElement As ModelElement, data As IDataObject) As Boolean

Parameters

targetElement
ModelElement

The ModelElement that is the target for the ElementGroupPrototype.

data
IDataObject

The IDataObject potentially containing the ElementGroupPrototype.

Returns

true if the ElementGroupPrototype from the IDataObject can be merged into the target ModelElement. Otherwise, false.

Applies to