VsTextViewClass.GetSelectedText, méthode
Retourne une copie du texte sélectionné.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
Public Overridable Function GetSelectedText ( _
<OutAttribute> ByRef pbstrText As String _
) As Integer
public virtual int GetSelectedText(
out string pbstrText
)
public:
virtual int GetSelectedText(
[OutAttribute] String^% pbstrText
)
abstract GetSelectedText :
pbstrText:string byref -> int
override GetSelectedText :
pbstrText:string byref -> int
public function GetSelectedText(
pbstrText : String
) : int
Paramètres
pbstrText
Type : String%[out] si la méthode réussit, spécifie un pointeur à une chaîne contenant le texte.
Valeur de retour
Type : Int32
Implémentations
IVsTextView.GetSelectedText(String%)
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.