TextBlock.SelectionStart プロパティ

定義

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

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

プロパティ値

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

注釈

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

重要

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

適用対象