共用方式為


ClipboardCommandSet.CreateMetafileForClipboard 方法

在複製或剪下時呼叫以產生 [剪貼簿] 的中繼檔。 預設實作會產生增強型中繼檔。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

語法

'宣告
Protected Overridable Function CreateMetafileForClipboard ( _
    selectedShapes As IEnumerable(Of ShapeElement) _
) As Metafile
protected virtual Metafile CreateMetafileForClipboard(
    IEnumerable<ShapeElement> selectedShapes
)

參數

傳回值

類型:System.Drawing.Imaging.Metafile
要放入剪貼簿的中繼檔,否則為 null,表示不在剪貼簿上放置任何中繼檔。

.NET Framework 安全性

請參閱

參考

ClipboardCommandSet 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間