Share via


IVsEnumTextSpans.Next(UInt32, TextSpan[], UInt32) Method

Definition

Retrieves text spans from the enumeration sequence.

public:
 int Next(System::UInt32 cEl, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ppOut, [Runtime::InteropServices::Out] System::UInt32 % pcElFetched);
int Next(unsigned int cEl, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ppOut, [Runtime::InteropServices::Out] unsigned int & pcElFetched);
public int Next (uint cEl, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ppOut, out uint pcElFetched);
abstract member Next : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * uint32 -> int
Public Function Next (cEl As UInteger, ppOut As TextSpan(), ByRef pcElFetched As UInteger) As Integer

Parameters

cEl
UInt32

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

ppOut
TextSpan[]

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

pcElFetched
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 IVsEnumTextSpans::Next(  
   [in] ULONG cEl,  
   [out, size_is(cEl)] TextSpan *ppOut,  
   [out] ULONG *pcElFetched  
);  

Applies to