ITextDocument.GetRange method

Applies to Windows and Windows Phone

Retrieves a new text range for the active story of the document.

Syntax


ITextRange GetRange(
  int startPosition, 
  int endPosition
)

Parameters

startPosition

Type: System.Int32 [.NET] | int32 [C++]

The starting position of the new text range, relative to the beginning of the story.

endPosition

Type: System.Int32 [.NET] | int32 [C++]

The ending position of the new text range.

Return value

Type: ITextRange

The new text range.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextDocument
ITextDocument.GetRangeFromPoint

 

 

Show:
© 2014 Microsoft