Compartir a través de


IVsTextLines.CreateLineMarker (Método)

Crea un marcador de un tipo determinado a la región especificada.

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

Sintaxis

'Declaración
Function CreateLineMarker ( _
    iMarkerType As Integer, _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer, _
    pClient As IVsTextMarkerClient, _
    <OutAttribute> ppMarker As IVsTextLineMarker() _
) As Integer
int CreateLineMarker(
    int iMarkerType,
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex,
    IVsTextMarkerClient pClient,
    IVsTextLineMarker[] ppMarker
)
int CreateLineMarker(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex, 
    [InAttribute] IVsTextMarkerClient^ pClient, 
    [OutAttribute] array<IVsTextLineMarker^>^ ppMarker
)
abstract CreateLineMarker : 
        iMarkerType:int * 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        pClient:IVsTextMarkerClient * 
        ppMarker:IVsTextLineMarker[] byref -> int
function CreateLineMarker(
    iMarkerType : int, 
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int, 
    pClient : IVsTextMarkerClient, 
    ppMarker : IVsTextLineMarker[]
) : int

Parámetros

  • iMarkerType
    Tipo: Int32

    [in] tipo de marcador a crear.

  • iStartLine
    Tipo: Int32

    [in] línea inicial.

  • iStartIndex
    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.

  • iEndLine
    Tipo: Int32

    [in] Línea de cierre.

  • iEndIndex
    Tipo: Int32

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

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::CreateLineMarker(
   [in] long iMarkerType,
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iEndLine,
   [in] CharIndex iEndIndex,
   [in] IVsTextMarkerClient * pClient,
   [out] IVsTextLineMarker ** ppMarker
);

Este método crea un marcador a la región especificada. Si desea escuchar los eventos de marcador para el búfer, después pase un puntero a la interfaz de IVsTextMarkerClient en el parámetro de pClient .

NotaNota

Los marcadores creados mediante IVsTextLines.CreateLineMarker son marcadores línea-orientados.CreateStreamMarker de uso para crear los marcadores secuencia-orientados.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextLines Interfaz

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