TextRange structure

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

Syntax

typedef struct _TextRange {
  UINT32 StartPosition;
  UINT32 Length;
} TextRange, *PTextRange;

Members

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

  • Length
    The number of characters in the range.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Windows.foundation.h

See also

ITextRangeProvider2