Partager via


IVsTextStream.FindMarkerByPosition Method

Locates a marker of a given type based on a position in the text stream.

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

Syntax

'Déclaration
Function FindMarkerByPosition ( _
    iMarkerType As Integer, _
    iStartingPos As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppMarker As IVsTextStreamMarker _
) As Integer
int FindMarkerByPosition(
    int iMarkerType,
    int iStartingPos,
    uint dwFlags,
    out IVsTextStreamMarker ppMarker
)
int FindMarkerByPosition(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartingPos, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsTextStreamMarker^% ppMarker
)
abstract FindMarkerByPosition : 
        iMarkerType:int * 
        iStartingPos:int * 
        dwFlags:uint32 * 
        ppMarker:IVsTextStreamMarker byref -> int 
function FindMarkerByPosition(
    iMarkerType : int, 
    iStartingPos : int, 
    dwFlags : uint, 
    ppMarker : IVsTextStreamMarker
) : int

Parameters

  • iMarkerType
    Type: System.Int32
    [in] Specifies the type of marker to find.
  • iStartingPos
    Type: System.Int32
    [in] Starting position in the text stream. 

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 IVsTextStream::FindMarkerByPosition(
   [in] long iMarkerType,
   [in] long iStartingPos,
   [in] DWORD dwFlags,
   [out] IVsTextStreamMarker **ppMarker
);

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

.NET Framework Security

See Also

Reference

IVsTextStream Interface

Microsoft.VisualStudio.TextManager.Interop Namespace