Share via


RichEditTextRange.MoveStart(TextRangeUnit, Int32) Method

Definition

Moves the start position of a text range.

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

Parameters

unit
TextRangeUnit

The unit by which to move the start position of the text range. The default value is Character.

count
Int32

int

The number of _unit_s to move the start position of the text range. The default value is 1. If count is greater than zero, the start position of the text range moves forward, toward the end of the story. If count is less than zero, the start position of the text range moves backward, toward the beginning of the story. If count is zero, the start position doesn't move.

Returns

Int32

int

The actual number of _unit_s that the start position moved. The pointer can be null.

Implements

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

Applies to