Partager via


ClipboardCommandSet.ResolveExportedShapesForClipboardImages Method

Definition

Method to resolve shapes used for export as Bitmap/Emf file into Clipboard. Using the DataObject enables to bring a coherence between what was copied as model-elements, and what is copied as images (otherwise it might be that you select two shapes, but not the connector between them, and this one is copied as elements, but not as an image)

protected:
 virtual System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^> ^ ResolveExportedShapesForClipboardImages(System::Windows::Forms::IDataObject ^ data, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements);
protected virtual System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement> ResolveExportedShapesForClipboardImages (System.Windows.Forms.IDataObject data, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> elements);
abstract member ResolveExportedShapesForClipboardImages : System.Windows.Forms.IDataObject * seq<Microsoft.VisualStudio.Modeling.ModelElement> -> seq<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement>
override this.ResolveExportedShapesForClipboardImages : System.Windows.Forms.IDataObject * seq<Microsoft.VisualStudio.Modeling.ModelElement> -> seq<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement>
Protected Overridable Function ResolveExportedShapesForClipboardImages (data As IDataObject, elements As IEnumerable(Of ModelElement)) As IEnumerable(Of ShapeElement)

Parameters

data
IDataObject

IDataObject which contained the ElementGroupPrototype

elements
IEnumerable<ModelElement>

elements to be copied into the EGP

Returns

Collection of shapes to be exported as bitmap/emf into CB

Applies to