IVsTextLineMarker.GetCurrentSpan, méthode
Retourne la position actuelle du marqueur de texte.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
Function GetCurrentSpan ( _
<OutAttribute> pSpan As TextSpan() _
) As Integer
int GetCurrentSpan(
TextSpan[] pSpan
)
int GetCurrentSpan(
[OutAttribute] array<TextSpan>^ pSpan
)
abstract GetCurrentSpan :
pSpan:TextSpan[] byref -> int
function GetCurrentSpan(
pSpan : TextSpan[]
) : int
Paramètres
pSpan
Type : array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][out] pointeur à la plage du texte que la marque couvre. L'étendue de texte pour une marque est un ensemble de deux [ligne], index coordonnées. Cette structure est allouée par l'appelant.
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 IVsTextLineMarker::GetCurrentSpan(
[out] TextSpan *pSpan
);
Utilisez cette méthode pour déterminer l'étendue actuelle d'une marque.
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.