共用方式為


VsTextBufferClass.EnumMarkers Method

Enumerates a specific set of text line markers, based on the criteria specified.

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

Syntax

'宣告
Public Overridable Function EnumMarkers ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer, _
    iMarkerType As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppEnum As IVsEnumLineMarkers _
) As Integer
'用途
Dim instance As VsTextBufferClass
Dim iStartLine As Integer
Dim iStartIndex As Integer
Dim iEndLine As Integer
Dim iEndIndex As Integer
Dim iMarkerType As Integer
Dim dwFlags As UInteger
Dim ppEnum As IVsEnumLineMarkers
Dim returnValue As Integer

returnValue = instance.EnumMarkers(iStartLine, _
    iStartIndex, iEndLine, iEndIndex, _
    iMarkerType, dwFlags, ppEnum)
public virtual int EnumMarkers(
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex,
    int iMarkerType,
    uint dwFlags,
    out IVsEnumLineMarkers ppEnum
)
public:
virtual int EnumMarkers(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex, 
    [InAttribute] int iMarkerType, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsEnumLineMarkers^% ppEnum
)
abstract EnumMarkers : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        iMarkerType:int * 
        dwFlags:uint32 * 
        ppEnum:IVsEnumLineMarkers byref -> int 
override EnumMarkers : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        iMarkerType:int * 
        dwFlags:uint32 * 
        ppEnum:IVsEnumLineMarkers byref -> int 
public function EnumMarkers(
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int, 
    iMarkerType : int, 
    dwFlags : uint, 
    ppEnum : IVsEnumLineMarkers
) : int

Parameters

  • iStartIndex
    Type: System.Int32
    [in] Starting character index within the line. Must be less than or equal to the length of the line.
  • iEndIndex
    Type: System.Int32
    [in] Ending character index within the line. Must be less than or equal to the length of the line.
  • iMarkerType
    Type: System.Int32
    [in] This parameter is ignored if a value of EM_ALLTYPES is specified for the dwFlags parameter. Otherwise, this parameter indicates the marker type to find.

Return Value

Type: System.Int32

Implements

IVsTextLines.EnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers%)

.NET Framework Security

See Also

Reference

VsTextBufferClass Class

VsTextBufferClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace