Share via


ClipboardCommandSet.CreateMetafileForClipboard Method

Called on copy or cut to generate a meta file for the Clipboard. The default implementation generates an enhanced metafile.

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

Syntax

'Declaration
Protected Overridable Function CreateMetafileForClipboard ( _
    selectedShapes As IEnumerable(Of ShapeElement) _
) As Metafile
protected virtual Metafile CreateMetafileForClipboard(
    IEnumerable<ShapeElement> selectedShapes
)
protected:
virtual Metafile^ CreateMetafileForClipboard(
    IEnumerable<ShapeElement^>^ selectedShapes
)
abstract CreateMetafileForClipboard : 
        selectedShapes:IEnumerable<ShapeElement> -> Metafile  
override CreateMetafileForClipboard : 
        selectedShapes:IEnumerable<ShapeElement> -> Metafile
protected function CreateMetafileForClipboard(
    selectedShapes : IEnumerable<ShapeElement>
) : Metafile

Parameters

  • selectedShapes
    Type: IEnumerable<ShapeElement>

    The shapes in the diagram that are to be placed on the clipboard.

Return Value

Type: Metafile
Metafile to be placed on the clipboard, or null to place no metafile on the clipboard.

.NET Framework Security

See Also

Reference

ClipboardCommandSet Class

Microsoft.VisualStudio.Modeling.Shell Namespace