ITextRangeProvider.Move(TextUnit, Int32) Method

Definition

Moves the text range the specified number of text units.

C#
public int Move(TextUnit unit, int count);

Parameters

unit
TextUnit

The text unit boundary.

count
Int32

The number of text units to move. A positive value moves the text range forward; a negative value moves the text range backward; and a value of 0 has no effect.

Returns

Int32

The number of units actually moved. This value can be less than the count requested if either of the new text range endpoints is greater than or less than the DocumentRange endpoints. This value can be negative if navigation is happening in the backward direction.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100