TextBox.SelectedText Propriedade

Definição

Obtém ou define o conteúdo da seleção atual na caixa de texto.

public:
 property Platform::String ^ SelectedText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring SelectedText();

void SelectedText(winrt::hstring value);
public string SelectedText { get; set; }
var string = textBox.selectedText;
textBox.selectedText = string;
Public Property SelectedText As String
<TextBox SelectedText="string"/>

Valor da propriedade

String

Platform::String

winrt::hstring

O texto selecionado atualmente na caixa de texto. Se nenhum texto for selecionado, o valor será String.Empty.

Aplica-se a