TextBlock.SelectedText TextBlock.SelectedText TextBlock.SelectedText TextBlock.SelectedText Property

Definition

Gets a text range of selected text.

public : Platform::String SelectedText { get; }
winrt::hstring SelectedText();
public string SelectedText { get; }
Public ReadOnly Property SelectedText As string

Property Value

string string

A text range of the selected text.

Remarks

Important

If using a keyboard for text selection within a TextBlock, the user must first activate Caret Browsing (with the app in the foreground, press F7).