IEnumFORMATETC::Next Method (Int32, array<FORMATETC>^, array<Int32>^)

 

Retrieves a specified number of items in the enumeration sequence.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  System (in System.dll)

int Next(
	int celt,
	array<FORMATETC>^ rgelt,
	array<int>^ pceltFetched
)

Parameters

celt
Type: System::Int32

The number of FORMATETC references to return in rgelt.

rgelt
Type: array<System.Runtime.InteropServices.ComTypes::FORMATETC>^

When this method returns, contains a reference to the enumerated FORMATETC references. This parameter is passed uninitialized.

pceltFetched
Type: array<System::Int32>^

When this method returns, contains a reference to the actual number of references enumerated in rgelt. This parameter is passed uninitialized.

Return Value

Type: System::Int32

S_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

For more information about IEnumFORMATETC::Next, see the MSDN Library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: