IVsEnumTextSpans::Next Method (UInt32, array<TextSpan>^, UInt32)

 

Retrieves text spans from the enumeration sequence.

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

int Next(
	unsigned int cEl,
	array<TextSpan>^ ppOut,
	[OutAttribute] unsigned int% pcElFetched
)

Parameters

cEl
Type: System::UInt32

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

ppOut
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

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

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 null 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.

From textmgr.idl:

[C++]

HRESULT IVsEnumTextSpans::Next(
   [in] ULONG cEl,
   [out, size_is(cEl)] TextSpan *ppOut,
   [out] ULONG *pcElFetched
);
Return to top
Show: