Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


Graphics.EnumerateMetafileProc Delegate

Definition

Provides a callback method for the EnumerateMetafile method.

C#
public delegate bool Graphics.EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback? callbackData);
C#
[System.Runtime.InteropServices.ComVisible(false)]
public delegate bool Graphics.EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback callbackData);
C#
public delegate bool Graphics.EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback callbackData);

Parameters

recordType
EmfPlusRecordType

Member of the EmfPlusRecordType enumeration that specifies the type of metafile record.

flags
Int32

Set of flags that specify attributes of the record.

dataSize
Int32

Number of bytes in the record data.

data
IntPtr

Pointer to a buffer that contains the record data.

callbackData
PlayRecordCallback

Not used.

Return Value

Return true if you want to continue enumerating records; otherwise, false.

Attributes

Examples

For an example see EnumerateMetafile.

Remarks

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.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Termék Verziók
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9