Partilhar via


Método VsTextViewClass.GetSelectedText

Retorna uma cópia do texto selecionado.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
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

Parâmetros

  • pbstrText
    Tipo: String%

    [out] Se o método for bem-sucedido, especifica um ponteiro para uma seqüência de caracteres que contém o texto.

Valor de retorno

Tipo: Int32

Implementações

IVsTextView.GetSelectedText(String%)

Segurança do .NET Framework

Consulte também

Referência

VsTextViewClass Classe

Namespace Microsoft.VisualStudio.TextManager.Interop