System.Windows.Forms.DataFormats.MetafilePict Field

Specifies the Windows metafile format, which Windows Forms does not directly use. This static field is read-only.

Syntax

public static readonly string MetafilePict

Remarks

The metafile format is a Windows file that stores an image in terms of graphic objects rather than pixels. When resized, a metafile preserves an image better than a bitmap.

Note:

Special considerations may be necessary when using the metafile format with the clipboard. Due to a limitation in the current implementation of the System.Windows.Forms.DataObject class, the metafile format used by the .NET Framework may not be recognized by applications that use an older metafile format. In this case, you must interoperate with the Win32 Clipboard application programming interfaces (APIs). For more information, see article 323530, "Metafiles on Clipboard Are Not Visible to All Applications," in the Microsoft Knowledge Base at http://support.microsoft.com.

This field is used by the System.Windows.Forms.IDataObject interface and the System.Windows.Forms.DataObject class to specify the data type.

When adding to an System.Windows.Forms.IDataObject or to an implementation of System.Windows.Forms.DataObject, use this field as the format for the IDataObject.SetData(string, bool, object) and DataObject.SetData(string, bool, object) methods.

To see if an object of this type exists, use this field as the format for the IDataObject.GetDataPresent(string, bool) and DataObject.GetDataPresent(Type) methods.

To get an object of this type, use this as the format for the IDataObject.GetData(string, bool) and DataObject.GetData(string, bool) methods.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0