Jaa


TextRange Struct

Definition

Represents a selection of text content.

public value class TextRange
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
struct TextRange
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public struct TextRange
Public Structure TextRange
Inheritance
TextRange
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

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