Partilhar via


IVsEnumTextSpans.Next Method

Retrieves text spans from the enumeration sequence.

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

Syntax

'Declaração
Function Next ( _
    cEl As UInteger, _
    <OutAttribute> ppOut As TextSpan(), _
    <OutAttribute> ByRef pcElFetched As UInteger _
) As Integer
int Next(
    uint cEl,
    TextSpan[] ppOut,
    out uint pcElFetched
)
int Next(
    [InAttribute] unsigned int cEl, 
    [OutAttribute] array<TextSpan>^ ppOut, 
    [OutAttribute] unsigned int% pcElFetched
)
abstract Next : 
        cEl:uint32 * 
        ppOut:TextSpan[] byref * 
        pcElFetched:uint32 byref -> int 
function Next(
    cEl : uint, 
    ppOut : TextSpan[], 
    pcElFetched : uint
) : int

Parameters

  • cEl
    Type: System.UInt32
    [in] The requested number of text spans to retrieve.
  • pcElFetched
    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 IVsEnumTextSpans::Next(
   [in] ULONG cEl,
   [out, size_is(cEl)] TextSpan *ppOut,
   [out] ULONG *pcElFetched
);

.NET Framework Security

See Also

Reference

IVsEnumTextSpans Interface

Microsoft.VisualStudio.TextManager.Interop Namespace