TextBlock.Select(TextPointer, TextPointer) Method

Definition

Selects a range of text in the TextBlock.

C#
public void Select(TextPointer start, TextPointer end);

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 WPF and Silverlight the equivalent API uses integer for start and end positions. This implementation uses TextPointer objects to specify the selection.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6