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.
pClient
Tipo: Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerClient[in] puntero a la interfaz de IVsTextMarkerClient . Implemente esta interfaz para advertir el búfer de texto que desea recibir notificación de eventos del marcador.
ppMarker
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker[][out] Puntero a la interfaz de IVsTextLineMarker (es decir, el marcador de texto). Si este parámetro es nullreferencia null (Nothing en Visual Basic), el búfer de texto posee el marcador. un ejemplo de un marcador búfer-poseído es marcador temporal.
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 .
![]() |
---|
Los marcadores creados mediante IVsTextLines.CreateLineMarker son marcadores línea-orientados.CreateStreamMarker de uso para crear los marcadores secuencia-orientados. |
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)