ElementOperations::CanCopy Method (ICollection<ModelElement^>^, ClosureType)
Visual Studio 2015
Gets a value indicating whether the collection of ModelElements can be copied to an IDataObject. Calls CanCopyCore to do the work.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
public: virtual bool CanCopy( ICollection<ModelElement^>^ elements, ClosureType closureType )
Parameters
- elements
-
Type:
System.Collections.Generic::ICollection<ModelElement^>^
The collection of ModelElements to copy.
- closureType
-
Type:
Microsoft.VisualStudio.Modeling::ClosureType
The type of closure to use to filter the elements.
Return Value
Type: System::Booleantrue if the collection of ModelElements can be copied to an IDataObject.
The supported formats: (1) ElementGroupPrototype, and (2) custom formats
Show: