TextBlock.Select(TextPointer, TextPointer) TextBlock.Select(TextPointer, TextPointer) TextBlock.Select(TextPointer, TextPointer) TextBlock.Select(TextPointer, TextPointer) Method

Definition

Selects a range of text in the TextBlock.

public : void Select(TextPointer start, TextPointer end)
void Select(TextPointer start, TextPointer end) const;
public void Select(TextPointer start, TextPointer end)
Public Sub Select(start As TextPointer, end As TextPointer)

Parameters

start
TextPointer TextPointer

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

end
TextPointer TextPointer

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

Remarks

In WPF and Silverlight the equivalent API uses integer for start and end positions. This implementation uses TextPointer objects to specify the selection.