Partager via


IVsTextLayer.EnumLayerMarkers Method

Definition

Enumerates all markers.

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

Parameters

iStartLine
Int32

[in] Starting line.

iStartIndex
Int32

[in] Starting character index within the line (must be <= length of line).

iEndLine
Int32

[in] Ending line.

iEndIndex
Int32

[in] Ending character index within the line (must be <= length of line).

iMarkerType
Int32

[in] The marker type.

dwFlags
UInt32

[in] ORing of the ENUMMARKERFLAGS enumeration.

ppEnum
IVsEnumLayerMarkers

[out] The enumeration of the markers.

Returns

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

Remarks

Enumerates all markers, but gets the IVsTextLineMarkerIVsEnumLineMarkers interface via IVsEnumLineMarkers.

COM Signature

From textmgr.idl:

HRESULT IVsTextLayer::EnumLayerMarkers(  
   [in] long iStartLine,  
   [in] CharIndex iStartIndex,  
   [in] long iEndLine,  
   [in] CharIndex iEndIndex,  
   [in] long iMarkerType,  
   [in] DWORD dwFlags, [out] IVsEnumLayerMarkers ** ppEnum  
);   

IVsTextLayer.EnumLayerMarkers enumerates all markers, but gets their IVsTextLineMarker interface via IVsEnumLineMarkers.

Applies to