TextBlock.IsTextSelectionEnabled TextBlock.IsTextSelectionEnabled TextBlock.IsTextSelectionEnabled 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 : Platform::Boolean IsTextSelectionEnabled { get; set; }
bool IsTextSelectionEnabled();

void IsTextSelectionEnabled(bool istextselectionenabled);
public bool IsTextSelectionEnabled { get; set; }
Public ReadWrite Property IsTextSelectionEnabled As bool
<TextBlock IsTextSelectionEnabled="bool" />

Property Value

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