Freigeben über


IVsTextLines.FindMarkerByLineIndex Method

Locates a marker of a given type based on a line index.

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

Syntax

'Declaration
Function FindMarkerByLineIndex ( _
    iMarkerType As Integer, _
    iStartingLine As Integer, _
    iStartingIndex As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppMarker As IVsTextLineMarker _
) As Integer
'Usage
Dim instance As IVsTextLines
Dim iMarkerType As Integer
Dim iStartingLine As Integer
Dim iStartingIndex As Integer
Dim dwFlags As UInteger
Dim ppMarker As IVsTextLineMarker
Dim returnValue As Integer

returnValue = instance.FindMarkerByLineIndex(iMarkerType, _
    iStartingLine, iStartingIndex, dwFlags, _
    ppMarker)
int FindMarkerByLineIndex(
    int iMarkerType,
    int iStartingLine,
    int iStartingIndex,
    uint dwFlags,
    out IVsTextLineMarker ppMarker
)
int FindMarkerByLineIndex(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartingLine, 
    [InAttribute] int iStartingIndex, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsTextLineMarker^% ppMarker
)
abstract FindMarkerByLineIndex : 
        iMarkerType:int * 
        iStartingLine:int * 
        iStartingIndex:int * 
        dwFlags:uint32 * 
        ppMarker:IVsTextLineMarker byref -> int 
function FindMarkerByLineIndex(
    iMarkerType : int, 
    iStartingLine : int, 
    iStartingIndex : int, 
    dwFlags : uint, 
    ppMarker : IVsTextLineMarker
) : int

Parameters

  • iMarkerType
    Type: System.Int32
    [in] Specifies the type of marker to find.
  • iStartingIndex
    Type: System.Int32
    [in] Starting character index within the line. Must be less than or equal to the length of the line.

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:

HRESULT IVsTextLines::FindMarkerByLineIndex(
   [in] long iMarkerType,
   [in] long iStartingLine,
   [in] CharIndex iStartingIndex,
   [in] DWORD dwFlags,
   [out] IVsTextLineMarker **ppMarker
);

This method searches for markers subject to the constraints specified using the dwFlags and iMarkerType parameters.

.NET Framework Security

See Also

Reference

IVsTextLines Interface

IVsTextLines Members

Microsoft.VisualStudio.TextManager.Interop Namespace