Delen via


RichTextBlock.Select(TextPointer, TextPointer) Method

Definition

Selects a range of text in the 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)

Parameters

start
TextPointer

An object that represents the start of the range to select.

end
TextPointer

An object that represents the end of the range to select.

Remarks

In Windows Presentation Foundation (WPF) and Microsoft Silverlight the equivalent API uses integer for start and end positions. This implementation uses TextPointer objects to specify the selection.

Applies to