Graphics.EnumerateMetafileProc Delegate
Assembly: System.Drawing (in system.drawing.dll)
'Declaration Public Delegate Function EnumerateMetafileProc ( _ recordType As EmfPlusRecordType, _ flags As Integer, _ dataSize As Integer, _ data As IntPtr, _ callbackData As PlayRecordCallback _ ) As Boolean 'Usage Dim instance As New EnumerateMetafileProc(AddressOf HandlerMethod)
/** @delegate */ public delegate boolean EnumerateMetafileProc ( EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback callbackData )
Not applicable.
Parameters
- recordType
Member of the EmfPlusRecordType enumeration that specifies the type of metafile record.
- flags
Set of flags that specify attributes of the record.
- dataSize
Number of bytes in the record data.
- data
Pointer to a buffer that contains the record data.
- callbackData
Not used.
Return Value
Return true if you want to continue enumerating records; otherwise, false.This method is used in conjunction with the EnumerateMetafile method of the Graphics class. Certain overloads of the EnumerateMetafile method call an application-defined callback method of this type for each record in a specified metafile. The callback function can display each record (or selected records) by calling the PlayRecord method of the Metafile that is being enumerated.
A user declaration of this callback method must have the same parameters as the Graphics.EnumerateMetafileProc delegate declaration.
For an example see EnumerateMetafile.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.