Show / Hide Table of Contents

Class ClipboardMetafileHelper

Helper class to copy metafiles to the clipboard.

The .NET classes Clipboard and DataObject are unable to properly deal with metafiles.

Inheritance
object
ClipboardMetafileHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Codecrete.SwissQRBill.Windows
Assembly: Codecrete.SwissQRBill.Windows.dll
Syntax
public class ClipboardMetafileHelper

Methods

| Edit this page View Source

PutOnClipboard(IntPtr, Metafile, Bitmap)

Puts the specified metafile and optionally the specified bitmap on the clipboard.

The metafile and the bitmap are expected to represent the same image.

Declaration
public static bool PutOnClipboard(IntPtr hWnd, Metafile metafile, Bitmap bitmap)
Parameters
Type Name Description
IntPtr hWnd

A Windows handle (used to access the clipboard)

Metafile metafile

The metafile.

Bitmap bitmap

The bitmap, or null.

Returns
Type Description
bool

true if successful, false otherwise

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX