ITextSnapshot.GetText, méthode (Span)
Obtient le texte de l'instantané démarrant au début de l'étendue et ayant une longueur égale à la longueur de l'étendue.
Espace de noms : Microsoft.VisualStudio.Text
Assembly : Microsoft.VisualStudio.Text.Data (dans Microsoft.VisualStudio.Text.Data.dll)
Syntaxe
'Déclaration
Function GetText ( _
span As Span _
) As String
string GetText(
Span span
)
String^ GetText(
Span span
)
abstract GetText :
span:Span -> string
function GetText(
span : Span
) : String
Paramètres
span
Type : Microsoft.VisualStudio.Text.SpanÉtendue à retourner.
Valeur de retour
Type : String
Chaîne non Null.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Fin de l'étendue est plus supérieure qu'Length. |
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.