Condividi tramite


ElementOperations.CanCopy Method

Definition

Overloads

CanCopy(ICollection<ModelElement>, ClosureType)

Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject. Calls CanCopyCore to do the work.

CanCopy(ICollection<ModelElement>)

Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject.

CanCopy(ICollection<ModelElement>, ClosureType)

Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject. Calls CanCopyCore to do the work.

public:
 virtual bool CanCopy(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType);
public virtual bool CanCopy (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType);
abstract member CanCopy : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
override this.CanCopy : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> bool
Public Overridable Function CanCopy (elements As ICollection(Of ModelElement), closureType As ClosureType) As Boolean

Parameters

elements
ICollection<ModelElement>

The collection of ModelElements to copy.

closureType
ClosureType

The type of closure to use to filter the elements.

Returns

true if the collection of ModelElements can be copied to an IDataObject.

Remarks

The supported formats: (1) ElementGroupPrototype, and (2) custom formats

Applies to

CanCopy(ICollection<ModelElement>)

Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject.

public:
 bool CanCopy(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements);
public bool CanCopy (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements);
member this.CanCopy : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> -> bool
Public Function CanCopy (elements As ICollection(Of ModelElement)) As Boolean

Parameters

elements
ICollection<ModelElement>

The collection of ModelElements to copy.

Returns

true if the collection of ModelElements can be copied to an IDataObject.

Remarks

The supported formats: (1) ElementGroupPrototype, and (2) custom formats

Applies to