Share via


IVsTextSpanSet.GetAt, méthode

Retourne une étendue de texte demandée.

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

Syntaxe

'Déclaration
Function GetAt ( _
    iEl As Integer, _
    <OutAttribute> pSpan As TextSpan() _
) As Integer
int GetAt(
    int iEl,
    TextSpan[] pSpan
)
int GetAt(
    [InAttribute] int iEl, 
    [OutAttribute] array<TextSpan>^ pSpan
)
abstract GetAt : 
        iEl:int * 
        pSpan:TextSpan[] byref -> int
function GetAt(
    iEl : int, 
    pSpan : TextSpan[]
) : int

Paramètres

  • iEl
    Type : Int32

    [in] entier contenant le numéro d'élément d'étendue de texte.

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 IVsTextSpanSet::GetAt(
   [in] LONG iEl, 
   [out, retval] TextSpan * pSpan
);

Le paramètre d'iEl est un index de base zéro moins que le nombre retourné dans GetCount.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextSpanSet Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms