Condividi tramite


IVsTextStream.FindMarkerByPosition Method

Definition

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

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

Parameters

iMarkerType
Int32

[in] Specifies the type of marker to find.

iStartingPos
Int32

[in] Starting position in the text stream.

dwFlags
UInt32

[in] Specifies the direction to search for a marker. For a list of dwFlags values, see FINDMARKERFLAGS.

ppMarker
IVsTextStreamMarker

[out] Pointer to the IVsTextStreamMarker interface (that is, the text marker).

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::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.

Applies to