TextBox.SelectedText TextBox.SelectedText TextBox.SelectedText TextBox.SelectedText Property

Definition

Gets or sets the content of the current selection in the text box.

public : Platform::String SelectedText { get; set; }
winrt::hstring SelectedText();

void SelectedText(winrt::hstring selectedtext);
public string SelectedText { get; set; }
Public ReadWrite Property SelectedText As string
<TextBox SelectedText="string"/>

Property Value

string string

The currently selected text in the text box. If no text is selected, the value is String.Empty.