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
'Utilisation
Dim instance As IVsTextStream
Dim iMarkerType As Integer
Dim iStartingPos As Integer
Dim dwFlags As UInteger
Dim ppMarker As IVsTextStreamMarker
Dim returnValue As Integer
returnValue = instance.FindMarkerByPosition(iMarkerType, _
iStartingPos, dwFlags, ppMarker)
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.
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.