Udostępnij za pośrednictwem


IVsEnumTextBuffers.Next(UInt32, IVsTextBuffer[], UInt32) Method

Definition

Retrieves text buffers from the enumeration sequence.

public:
 int Next(System::UInt32 celt, cli::array <Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^> ^ rgelt, System::UInt32 % pceltFetched);
int Next(unsigned int celt, std::Array <Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const &> const & rgelt, unsigned int & pceltFetched);
public int Next (uint celt, Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[] rgelt, ref uint pceltFetched);
abstract member Next : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[] * uint32 -> int
Public Function Next (celt As UInteger, rgelt As IVsTextBuffer(), ByRef pceltFetched As UInteger) As Integer

Parameters

celt
UInt32

[in] The requested number of text buffers to retrieve.

rgelt
IVsTextBuffer[]

[out, size_is(celt)] The list of IVsTextBuffer objects that have been retrieved.

pceltFetched
UInt32

[out] Pointer to the actual number of hidden regions supplied in pceltFetched. The caller of this method can set this to null if celt is one.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

[C++]

HRESULT IVsEnumTextBuffers::Next(  
   ULONG celt,  
   [out, size_is(celt), length_is(*pceltFetched)] IVsTextBuffer **rgelt,  
   ULONG *pceltFetched  
);  

Applies to