Share via


RichEditTextRange.Move(TextRangeUnit, Int32) Method

Definition

Moves the insertion point forward or backward by the specified number of _unit_s. If the text range is nondegenerate, it is collapsed to an insertion point at the start or end position of the text range, depending on count, and then is moved.

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

Parameters

unit
TextRangeUnit

The units to move the insertion point. The default value is Character.

count
Int32

int

The number of _unit_s to move the insertion point. The default value is 1. If count is greater than zero, the insertion point moves forward, toward the end of the story. If count is less than zero, the insertion point moves backward, toward the beginning of the story. If count is zero, the range is unchanged.

Returns

Int32

int

The actual number of units the insertion point moves.

Implements

M:Windows.UI.Text.ITextRange.Move(Windows.UI.Text.TextRangeUnit,System.Int32) M:Windows.UI.Text.ITextRange.Move(Windows.UI.Text.TextRangeUnit,int)

Applies to