Share via


RichTextBlock.SelectionEnd 属性

定义

获取 RichTextBlock 中所选文本的结束位置。

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

属性值

表示选择结束的 对象;如果没有选定内容,则为 null。

注解

使用 “选择” 设置选择的开始和结束。

适用于