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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)