IVsTextStream::FindMarkerByPosition Method (Int32, Int32, UInt32, IVsTextStreamMarker^)

 

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)

int FindMarkerByPosition(
	int iMarkerType,
	int iStartingPos,
	unsigned int dwFlags,
	[OutAttribute] IVsTextStreamMarker^% ppMarker
)

Parameters

iMarkerType
Type: System::Int32

[in] Specifies the type of marker to find.

iStartingPos
Type: System::Int32

[in] Starting position in the text stream. 

dwFlags
Type: System::UInt32

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

ppMarker
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextStreamMarker^

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: