Share via


RichTextBlock.SelectionStart 属性

定义

获取 RichTextBlock 中选择的文本的起始位置。

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

属性值

表示选择开始的 对象;如果没有选定内容,则为 null

注解

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

适用于