ClipboardCommandSet.CreateBitmapForClipboard Method
Called on copy or cut to generate a bitmap that can be placed on the clipboard, given a set of shapes, or null to place no bitmap on the clipboard.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
‘선언
Protected Overridable Function CreateBitmapForClipboard ( _
selectedShapes As IEnumerable(Of ShapeElement) _
) As Bitmap
protected virtual Bitmap CreateBitmapForClipboard(
IEnumerable<ShapeElement> selectedShapes
)
protected:
virtual Bitmap^ CreateBitmapForClipboard(
IEnumerable<ShapeElement^>^ selectedShapes
)
abstract CreateBitmapForClipboard :
selectedShapes:IEnumerable<ShapeElement> -> Bitmap
override CreateBitmapForClipboard :
selectedShapes:IEnumerable<ShapeElement> -> Bitmap
protected function CreateBitmapForClipboard(
selectedShapes : IEnumerable<ShapeElement>
) : Bitmap
Parameters
- selectedShapes
Type: System.Collections.Generic.IEnumerable<ShapeElement>
The shapes in the diagram that are to be placed on the clipboard.
Return Value
Type: System.Drawing.Bitmap
Bitmap to be staged into the clipboard, or null if you do not want bitmap to be staged into the clipboard.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.