Compartir a través de


IVsTextLines.FindMarkerByLineIndex (Método)

Busque un marcador de un tipo determinado basándose en un índice de línea.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
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 el tipo de marcador para buscar.

  • iStartingLine
    Tipo: Int32

    [in] línea inicial.

  • iStartingIndex
    Tipo: Int32

    [in] Iniciar el índice del carácter en la línea. Debe ser menor o igual que la longitud de la línea.

  • dwFlags
    Tipo: UInt32

    [in] Especifica la dirección para buscar el marcador. Para obtener una lista de valores de dwFlags , vea FINDMARKERFLAGS.

Valor devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

HRESULT IVsTextLines::FindMarkerByLineIndex(
   [in] long iMarkerType,
   [in] long iStartingLine,
   [in] CharIndex iStartingIndex,
   [in] DWORD dwFlags,
   [out] IVsTextLineMarker **ppMarker
);

Búsquedas de este método para los marcadores en las restricciones especificados mediante los parámetros de dwFlags y de iMarkerType .

Seguridad de .NET Framework

Vea también

Referencia

IVsTextLines Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)