TextBlock.IsTextSelectionEnabled Property

Definition

Gets or sets a value that indicates whether text selection is enabled in the TextBlock, either through user action or calling selection-related API.

public:
 property bool IsTextSelectionEnabled { bool get(); void set(bool value); };
bool IsTextSelectionEnabled();

void IsTextSelectionEnabled(bool value);
public bool IsTextSelectionEnabled { get; set; }
var boolean = textBlock.isTextSelectionEnabled;
textBlock.isTextSelectionEnabled = boolean;
Public Property IsTextSelectionEnabled As Boolean
<TextBlock IsTextSelectionEnabled="bool" />

Property Value

Boolean

bool

true if text selection is enabled; otherwise, false.

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).

Applies to