Udostępnij za pośrednictwem


IVsTextStream.EnumMarkers Method

Definition

Enumerates s specific set of text stream markers, based on the criteria specified.

public:
 int EnumMarkers(int iPos, int iLen, int iMarkerType, System::UInt32 dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumStreamMarkers ^ % ppEnum);
public:
 int EnumMarkers(int iPos, int iLen, int iMarkerType, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumStreamMarkers ^ &  ppEnum);
int EnumMarkers(int iPos, int iLen, int iMarkerType, unsigned int dwFlags, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumStreamMarkers const & & ppEnum);
public int EnumMarkers (int iPos, int iLen, int iMarkerType, uint dwFlags, out Microsoft.VisualStudio.TextManager.Interop.IVsEnumStreamMarkers ppEnum);
abstract member EnumMarkers : int * int * int * uint32 * IVsEnumStreamMarkers -> int
Public Function EnumMarkers (iPos As Integer, iLen As Integer, iMarkerType As Integer, dwFlags As UInteger, ByRef ppEnum As IVsEnumStreamMarkers) As Integer

Parameters

iPos
Int32

[in] Starting position in the text buffer.

iLen
Int32

[in] Length of text to enumerate marker over.

iMarkerType
Int32

[in] Type of markers to enumerate. This parameter is ignored if a value of EM_ALLTYPES is specified for the dwFlags parameter.

dwFlags
UInt32

[in] Enumeration options. For a list of dwFlags values, see ENUMMARKERFLAGS.

ppEnum
IVsEnumStreamMarkers

[out] Pointer to the IVsEnumStreamMarkers interface.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to