IVsTextStream::EnumMarkers Method (Int32, Int32, Int32, UInt32, IVsEnumStreamMarkers^)
Enumerates s specific set of text stream markers, based on the criteria specified.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int EnumMarkers( int iPos, int iLen, int iMarkerType, unsigned int dwFlags, [OutAttribute] IVsEnumStreamMarkers^% ppEnum )
Parameters
- iPos
-
Type:
System::Int32
[in] Starting position in the text buffer.
- iLen
-
Type:
System::Int32
[in] Length of text to enumerate marker over.
- iMarkerType
-
Type:
System::Int32
[in] Type of markers to enumerate. This parameter is ignored if a value of EM_ALLTYPES is specified for the dwFlags parameter.
- dwFlags
-
Type:
System::UInt32
[in] Enumeration options. For a list of dwFlags values, see ENUMMARKERFLAGS.
- ppEnum
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsEnumStreamMarkers^
[out] Pointer to the IVsEnumStreamMarkers interface.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextStream::EnumMarkers( [in] long iPos, [in] long iLen, [in] long iMarkerType, [in] DWORD dwFlags, [out] IVsEnumStreamMarkers **ppEnum );
This method enumerates the markers over a given region, subject to the value(s) of the dwFlags parameter. EnumMarkers enumerates all markers, but gets the IVsTextStreamMarker interface via the IVsEnumStreamMarkers interface.