Retrieves text spans from the enumeration sequence.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function Next ( _
cEl As UInteger, _
<OutAttribute> ppOut As TextSpan(), _
<OutAttribute> ByRef pcElFetched As UInteger _
) As Integer
'使用
Dim instance As IVsEnumTextSpans
Dim cEl As UInteger
Dim ppOut As TextSpan()
Dim pcElFetched As UInteger
Dim returnValue As Integer
returnValue = instance.Next(cEl, ppOut, _
pcElFetched)
int Next(
uint cEl,
TextSpan[] ppOut,
out uint pcElFetched
)
int Next(
[InAttribute] unsigned int cEl,
[OutAttribute] array<TextSpan>^ ppOut,
[OutAttribute] unsigned int% pcElFetched
)
function Next(
cEl : uint,
ppOut : TextSpan[],
pcElFetched : uint
) : int
Parameters
cEl
Type: System.UInt32[in] The requested number of text spans to retrieve.
ppOut
Type: [][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 a 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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.