Compartir a través de


VsTextViewClass.GetSelectedText (Método)

Devuelve una copia del texto seleccionado.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
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] si el método tiene éxito, especifica un puntero a una cadena que contiene el texto.

Valor devuelto

Tipo: Int32

Implementaciones

IVsTextView.GetSelectedText(String%)

Seguridad de .NET Framework

Vea también

Referencia

VsTextViewClass Clase

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)