Graphics.EnumerateMetafileProc 委托

定义

EnumerateMetafile 方法提供回调方法。Provides a callback method for the EnumerateMetafile method.

public: delegate bool Graphics::EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback ^ callbackData);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate bool Graphics.EnumerateMetafileProc(EmfPlusRecordType recordType, int flags, int dataSize, IntPtr data, PlayRecordCallback callbackData);
type Graphics.EnumerateMetafileProc = delegate of EmfPlusRecordType * int * int * nativeint * PlayRecordCallback -> bool
Public Delegate Function Graphics.EnumerateMetafileProc(recordType As EmfPlusRecordType, flags As Integer, dataSize As Integer, data As IntPtr, callbackData As PlayRecordCallback) As Boolean 

参数

recordType
EmfPlusRecordType

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.

返回值

Boolean

如果要继续枚举记录,则返回 true,否则返回 falseReturn true if you want to continue enumerating records; otherwise, false.

继承
Graphics.EnumerateMetafileProc
属性

示例

有关示例,请参阅 EnumerateMetafileFor an example see EnumerateMetafile.

注解

此方法与 Graphics 类的 EnumerateMetafile 方法结合使用。This method is used in conjunction with the EnumerateMetafile method of the Graphics class. EnumerateMetafile 方法的某些重载将为指定的图元文件中的每个记录调用此类型的应用程序定义的回调方法。Certain overloads of the EnumerateMetafile method call an application-defined callback method of this type for each record in a specified metafile. 回调函数可以通过调用要枚举的 MetafilePlayRecord 方法来显示每个记录(或所选记录)。The callback function can display each record (or selected records) by calling the PlayRecord method of the Metafile that is being enumerated.

此回调方法的用户声明必须具有与 Graphics.EnumerateMetafileProc 委托声明相同的参数。A user declaration of this callback method must have the same parameters as the Graphics.EnumerateMetafileProc delegate declaration.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于