VsTextViewClass.GetSelectedText(String) Método

Definição

Retorna uma cópia do texto selecionado.

public:
 virtual int GetSelectedText([Runtime::InteropServices::Out] System::String ^ % pbstrText) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetSelectedText;
 virtual int GetSelectedText([Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public virtual int GetSelectedText (out string pbstrText);
abstract member GetSelectedText : string -> int
override this.GetSelectedText : string -> int
Public Overridable Function GetSelectedText (ByRef pbstrText As String) As Integer

Parâmetros

pbstrText
String

fora Se o método tiver sucesso, especifica um ponteiro para uma cadeia de caracteres que contém o texto.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Implementações

Aplica-se a