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.
pSpan
Type : array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][out] pointeur à un objet 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
- 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.