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.
pClient
Type : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerClient[in] pointeur à l'interface d'IVsTextMarkerClient. Implémentez cette interface pour recommander la mémoire tampon de texte que vous souhaitiez recevoir la notification des événements de marque.
ppMarker
Type : array<Microsoft.VisualStudio.TextManager.Interop.IVsTextStreamMarker[][out] pointeur à l'interface d'IVsTextStreamMarker. Si ce paramètre est nullune référence null (Nothing en Visual Basic), alors le marqueur de texte est détenu par la mémoire tampon de texte. Un exemple d'un marqueur de texte appartenant à 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 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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.