TextRange TextRange TextRange TextRange Struct


Represents a selection of text content.

public : struct TextRange
struct winrt::Windows::UI::Xaml::Documents::TextRange
public struct TextRange
Public Structure TextRange

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)


Length Length Length Length

The length of the current selection, in Unicode characters.

StartIndex StartIndex StartIndex StartIndex

The position that marks the beginning of the current selection, measured in Unicode characters from the beginning of the text.