TextBlock.SelectionEnd プロパティ

定義

TextBlock で選択されているテキストの終了位置を取得します。

public:
 property TextPointer ^ SelectionEnd { TextPointer ^ get(); };
TextPointer SelectionEnd();
public TextPointer SelectionEnd { get; }
var textPointer = textBlock.selectionEnd;
Public ReadOnly Property SelectionEnd As TextPointer

プロパティ値

選択範囲の終了を表す オブジェクト。選択範囲が存在しない場合は null。

注釈

[選択] を使用して、選択の開始と終了を設定します。

重要

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

適用対象