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 내에서 텍스트 선택에 키보드를 사용하는 경우 사용자는 먼저 Caret 브라우징을 활성화해야 합니다(앱이 포그라운드에 있는 경우 F7 키를 누릅니다).

적용 대상