Partilhar via


Método IVsTextLines.FindMarkerByLineIndex

Localiza um marcador de um determinado tipo com base em um índice de linha.

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

Sintaxe

'Declaração
Function FindMarkerByLineIndex ( _
    iMarkerType As Integer, _
    iStartingLine As Integer, _
    iStartingIndex As Integer, _
    dwFlags As UInteger, _
    <OutAttribute> ByRef ppMarker As IVsTextLineMarker _
) As Integer
int FindMarkerByLineIndex(
    int iMarkerType,
    int iStartingLine,
    int iStartingIndex,
    uint dwFlags,
    out IVsTextLineMarker ppMarker
)
int FindMarkerByLineIndex(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartingLine, 
    [InAttribute] int iStartingIndex, 
    [InAttribute] unsigned int dwFlags, 
    [OutAttribute] IVsTextLineMarker^% ppMarker
)
abstract FindMarkerByLineIndex : 
        iMarkerType:int * 
        iStartingLine:int * 
        iStartingIndex:int * 
        dwFlags:uint32 * 
        ppMarker:IVsTextLineMarker byref -> int
function FindMarkerByLineIndex(
    iMarkerType : int, 
    iStartingLine : int, 
    iStartingIndex : int, 
    dwFlags : uint, 
    ppMarker : IVsTextLineMarker
) : int

Parâmetros

  • iMarkerType
    Tipo: Int32

    [in] Especifica o tipo de marcador para localizar.

  • iStartingLine
    Tipo: Int32

    [in] Linha inicial.

  • iStartingIndex
    Tipo: Int32

    [in] Índice de caractere inicial dentro da linha. Deve ser menor ou igual ao comprimento da linha.

  • dwFlags
    Tipo: UInt32

    [in] Especifica a direção para procurar o marcador. Para obter uma lista de dwFlags valores, consulte FINDMARKERFLAGS.

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 IVsTextLines::FindMarkerByLineIndex(
   [in] long iMarkerType,
   [in] long iStartingLine,
   [in] CharIndex iStartingIndex,
   [in] DWORD dwFlags,
   [out] IVsTextLineMarker **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

Consulte também

Referência

IVsTextLines Interface

Namespace Microsoft.VisualStudio.TextManager.Interop