IVsTextLines.CreateLineMarker, méthode

Crée une marque d'un type donné au-dessus de la zone spécifiée.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
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

Paramètres

  • iMarkerType
    Type : Int32

    [in] type de marque à la créer.

  • iStartLine
    Type : Int32

    [in] à partir de la ligne.

  • iStartIndex
    Type : Int32

    [in] démarrant l'index de caractère dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • iEndLine
    Type : Int32

    [in] terminant la ligne.

  • iEndIndex
    Type : Int32

    [in] index de caractère de fin dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • ppMarker
    Type : array<Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker[]

    [out] pointeur à l'interface d'IVsTextLineMarker (autrement dit, le marqueur de texte). Si ce paramètre est nullune référence null (Nothing en Visual Basic), alors la marque est possédée par la mémoire tampon de texte. Un exemple d'une marque possédée par la mémoire tampon est un signet temporaire.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de 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
);

Cette méthode crée une marque au-dessus de la zone spécifiée. Si vous souhaitez écouter des événements de marque pour la mémoire tampon, puis passez dans un pointeur à l'interface d'IVsTextMarkerClient dans le paramètre d'pClient.

Notes

Les marques créées à l'aide de IVsTextLines.CreateLineMarker sont les marques au niveau de la ligne.Utilisez l'CreateStreamMarker pour créer les marques en continu.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextLines Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms