TextBox.SelectedText Propiedad

Definición

Obtiene o establece el contenido de la selección actual del cuadro 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 de propiedad

String

Platform::String

winrt::hstring

Texto seleccionado actualmente en el cuadro de texto. Si no hay texto seleccionado, el valor es String.Empty.

Se aplica a