Windows apps
Collapse the table of content
Expand the table of content

TextRange structure

[This documentation is preliminary and is subject to change.]

Represents a range of text in a string as a start position and a length.

Syntax


var textRange = {
    length : /* Your value */,
    startPosition : /* Your value */
}

Attributes

VersionAttribute(100859904)

Members

The TextRange structure has these fields.

FieldData typeDescription
Length | length

Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The number of characters in the range.

StartPosition | startPosition

Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The zero-based start position of the range in a string.

 

Requirements

Minimum supported client

Windows 8.1 Preview

Minimum supported server

Windows Server 2012 R2 Preview

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

 

 

Build date: 7/26/2013

Show:
© 2016 Microsoft