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 */
}
public struct TextRange
Public Structure TextRange
public value struct TextRange

Attributes

VersionAttribute(100859904)

Members

The TextRange structure has these fields.

Field Data type Description
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