共用方式為


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

備註

使用 [選取 ] 來設定選取項目開始和結束。

適用於