Método IVsTextStream.FindMarkerByPosition
Localiza um marcador de um determinado tipo com base em uma posição no fluxo de texto.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
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
Parâmetros
iMarkerType
Tipo: Int32[in] Especifica o tipo de marcador para localizar.
iStartingPos
Tipo: Int32[in] Posição inicial no fluxo de texto.
dwFlags
Tipo: UInt32[in] Especifica a direção para procurar um marcador. Para obter uma lista de dwFlags valores, consulte FINDMARKERFLAGS.
ppMarker
Tipo: Microsoft.VisualStudio.TextManager.Interop.IVsTextStreamMarker%[out] Ponteiro para o IVsTextStreamMarker interface (ou seja, o marcador de texto).
Valor de retorno
Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De textmgr.idl:
HRESULT IVsTextStream::FindMarkerByPosition(
[in] long iMarkerType,
[in] long iStartingPos,
[in] DWORD dwFlags,
[out] IVsTextStreamMarker **ppMarker
);
Esse método procura por marcadores de Submeter às restrições especificadas usando o dwFlags e iMarkerType parâmetros.
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.