Graphics.EnumerateMetafileProc 代理人

定義

提供回呼 (Callback) 方法給 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 列舉型別 (Enumeration) 的成員,指定中繼檔記錄的型別。Member of the EmfPlusRecordType enumeration that specifies the type of metafile record.

flags
Int32

指定記錄屬性 (Attribute) 的旗標集。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
屬性

範例

如需範例, EnumerateMetafile請參閱。For an example see EnumerateMetafile.

備註

這個方法會與EnumerateMetafile Graphics類別的方法搭配使用。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. 回呼函式可以藉由呼叫PlayRecord所列舉之的方法, 來顯示每一筆記錄 (或選取的Metafile記錄)。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.

適用於