RichTextBlock.Select(TextPointer, TextPointer) 方法

定義

選取 RichTextBlock中的文字範圍。

public:
 virtual void Select(TextPointer ^ start, TextPointer ^ end) = Select;
void Select(TextPointer const& start, TextPointer const& end);
public void Select(TextPointer start, TextPointer end);
function select(start, end)
Public Sub Select (start As TextPointer, end As TextPointer)

參數

start
TextPointer

物件,表示要選取的範圍開頭。

end
TextPointer

物件,表示要選取的範圍結尾。

備註

在 Windows Presentation Foundation (WPF) 和 Microsoft Silverlight 中,對等 API 會使用整數來取得開始和結束位置。 此實作會使用 TextPointer 物件來指定選取範圍。

適用於