Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Runtime.​InteropServices.​ComTypes.​IEnumFORMATETC
Assembly: System.Runtime.InteropServices
Provides the managed definition of the <see langword="IEnumFORMATETC" /> interface.
Methods
public
int
Next​(int celt,
FORMATETC[] rgelt,
int[] pceltFetched)
celt
The number of <see cref="T:System.Runtime.InteropServices.ComTypes.FORMATETC" /> references to return in <paramref name="rgelt" /> .
rgelt
When this method returns, contains a reference to the enumerated <see cref="T:System.Runtime.InteropServices.ComTypes.FORMATETC" /> references. This parameter is passed uninitialized.
pceltFetched
When this method returns, contains a reference to the actual number of references enumerated in <paramref name="rgelt" /> . This parameter is passed uninitialized.
Returns <see langword="S_OK" /> if the <paramref name="pceltFetched" /> parameter equals the <paramref name="celt" /> parameter; otherwise, <see langword="S_FALSE" /> .
Retrieves a specified number of items in the enumeration sequence.
public
int
Reset​() Returns An HRESULT with the value <see langword="S_OK" /> .
Resets the enumeration sequence to the beginning.
public
int
Skip​(int celt)
celt
The number of elements to skip in the enumeration.
Returns <see langword="S_OK" /> if the number of elements skipped equals the <paramref name="celt" /> parameter; otherwise, <see langword="S_FALSE" /> .
Skips a specified number of items in the enumeration sequence.