Partager via


IVsTextStream.CreateStreamMarker, méthode

Crée une marque de flux de données 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 CreateStreamMarker ( _
    iMarkerType As Integer, _
    iPos As Integer, _
    iLength As Integer, _
    pClient As IVsTextMarkerClient, _
    <OutAttribute> ppMarker As IVsTextStreamMarker() _
) As Integer
int CreateStreamMarker(
    int iMarkerType,
    int iPos,
    int iLength,
    IVsTextMarkerClient pClient,
    IVsTextStreamMarker[] ppMarker
)
int CreateStreamMarker(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iPos, 
    [InAttribute] int iLength, 
    [InAttribute] IVsTextMarkerClient^ pClient, 
    [OutAttribute] array<IVsTextStreamMarker^>^ ppMarker
)
abstract CreateStreamMarker : 
        iMarkerType:int * 
        iPos:int * 
        iLength:int * 
        pClient:IVsTextMarkerClient * 
        ppMarker:IVsTextStreamMarker[] byref -> int
function CreateStreamMarker(
    iMarkerType : int, 
    iPos : int, 
    iLength : int, 
    pClient : IVsTextMarkerClient, 
    ppMarker : IVsTextStreamMarker[]
) : int

Paramètres

  • iMarkerType
    Type : Int32

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

  • iPos
    Type : Int32

    [in] position de départ dans la mémoire tampon de texte.

  • iLength
    Type : Int32

    [in] longueur du texte pour créer la marque plus de.

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 IVsTextStream::CreateStreamMarker(
   [in] long iMarkerType,
   [in] long iPos,
   [in] long iLength,
   [in] IVsTextMarkerClient *pClient,
   [out] IVsTextStreamMarker **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 CreateStreamMarker sont les marques en continu.M:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines.CreateLineMarker(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerClient,Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker[]) d'utilisation pour créer les marques au niveau de la ligne.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextStream Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms