Share via


TextRange Struct

Definition

Represents a selection of text content.

public value class TextRange
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
struct TextRange
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public struct TextRange
Public Structure TextRange
Inheritance
TextRange
Attributes

Fields

Length

The length of the current selection, in Unicode characters.

StartIndex

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

Applies to