Delen via


ITextRangeProvider.Move(TextUnit, Int32) Method

Definition

Moves the text range the specified number of text units.

public:
 int Move(TextUnit unit, int count);
int Move(TextUnit const& unit, int const& count);
public int Move(TextUnit unit, int count);
function move(unit, count)
Public Function Move (unit As TextUnit, count As Integer) As Integer

Parameters

unit
TextUnit

The text unit boundary.

count
Int32

int

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

int

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