TextBlock.IsTextSelectionEnabled プロパティ

定義

テキストの選択が TextBlock で有効になっているかどうかを示す値を取得または設定します。これは、ユーザー アクションまたは選択関連 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" />

プロパティ値

Boolean

bool

テキスト の選択が有効な場合は true。それ以外の場合は false

注釈

重要

TextBlock 内でキーボードを使用してテキストを選択する場合、ユーザーは最初に キャレットブラウズ をアクティブにする必要があります (アプリをフォアグラウンドで F7 キーを押します)。

適用対象