TextRange TextRange TextRange TextRange Struct

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents a selection of text content.

public : struct TextRangepublic struct TextRangePublic Structure TextRange// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Fields

Length Length Length Length

Prerelease. The length of the current selection, in Unicode characters.

public : field int Lengthpublic field int LengthPublic Field Length// This API is not available in Javascript.

StartIndex StartIndex StartIndex StartIndex

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

public : field int StartIndexpublic field int StartIndexPublic Field StartIndex// This API is not available in Javascript.