Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Obtient les étendues de texte pour une paire correspondante (ou le triplet) des éléments de langage.
Espace de noms : Microsoft.VisualStudio.Package
Assemblys : Microsoft.VisualStudio.Package.LanguageService.10.0 (dans Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (dans Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (dans Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (dans Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntaxe
'Déclaration
Public Overridable Function GetPairExtents ( _
textView As IVsTextView, _
line As Integer, _
col As Integer, _
<OutAttribute> ByRef startBraceSpan As TextSpan, _
<OutAttribute> ByRef endBraceSpan As TextSpan _
) As Boolean
public virtual bool GetPairExtents(
IVsTextView textView,
int line,
int col,
out TextSpan startBraceSpan,
out TextSpan endBraceSpan
)
Paramètres
- textView
Type : Microsoft.VisualStudio.TextManager.Interop.IVsTextView
IVsTextView qui contient le texte qui contient les éléments de langage correspondants.
- line
Type : System.Int32
Numéro de ligne.
- col
Type : System.Int32
Numéro de la colonne.
- startBraceSpan
Type : Microsoft.VisualStudio.TextManager.Interop.TextSpan%
[] IVsTextSpan qui contient l'élément commençant.
- endBraceSpan
Type : Microsoft.VisualStudio.TextManager.Interop.TextSpan%
[] IVsTextSpan qui contient l'élément de fin.
Valeur de retour
Type : System.Boolean
Remarques
Cette méthode exécute une opération d'BeginParse avec MatchBraces et ParseResultHandler d'HandleGetPairExtentResponse et retourne les objets et début se terminants d'IVsTextSpan.
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, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.