Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Graphics.EnumerateMetafileProc Delegate

Provides a callback method for the EnumerateMetafile method.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

public delegate bool EnumerateMetafileProc (
	EmfPlusRecordType recordType,
	int flags,
	int dataSize,
	IntPtr data,
	PlayRecordCallback callbackData
)
/** @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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.