IVsEnumTextBuffers.Next Method

Retrieves text buffers from the enumeration sequence.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgelt As IVsTextBuffer(), _
    ByRef pceltFetched As UInteger _
) As Integer
'Utilisation
Dim instance As IVsEnumTextBuffers
Dim celt As UInteger
Dim rgelt As IVsTextBuffer()
Dim pceltFetched As UInteger
Dim returnValue As Integer

returnValue = instance.Next(celt, rgelt, _
    pceltFetched)
int Next(
    uint celt,
    IVsTextBuffer[] rgelt,
    ref uint pceltFetched
)
int Next(
    unsigned int celt, 
    [OutAttribute] array<IVsTextBuffer^>^ rgelt, 
    unsigned int% pceltFetched
)
abstract Next : 
        celt:uint32 * 
        rgelt:IVsTextBuffer[] byref * 
        pceltFetched:uint32 byref -> int 
function Next(
    celt : uint, 
    rgelt : IVsTextBuffer[], 
    pceltFetched : uint
) : int

Parameters

  • celt
    Type: System.UInt32
    [in] The requested number of text buffers to retrieve.
  • pceltFetched
    Type: System.UInt32%
    [out] Pointer to the actual number of hidden regions supplied in pceltFetched. The caller of this method can set this to nulla null reference (Nothing in Visual Basic) if celt is one.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsEnumTextBuffers Interface

IVsEnumTextBuffers Members

Microsoft.VisualStudio.TextManager.Interop Namespace