ITextSelection.MoveRight(TextRangeUnit, Int32, Boolean) メソッド

定義

右方向キーの機能を模倣して、挿入ポイントまたはテキスト選択のアクティブな終了位置を右に移動します。

public:
 int MoveRight(TextRangeUnit unit, int count, bool extend);
int MoveRight(TextRangeUnit const& unit, int const& count, bool const& extend);
public int MoveRight(TextRangeUnit unit, int count, bool extend);
function moveRight(unit, count, extend)
Public Function MoveRight (unit As TextRangeUnit, count As Integer, extend As Boolean) As Integer

パラメーター

unit
TextRangeUnit

挿入ポイントまたはアクティブな終点を移動する単位。 次の値が有効です。

対応するキーの組み合わせ意味
文字→ キー1 文字の位置を右に移動します。 既定値です。
WordCtrl + →1 つの単語を右に移動します。
count
Int32

int

移動する単位の数。 既定値は 1 です。 count が 0 未満の場合、移動は左に移動します。

extend
Boolean

bool

選択範囲を変更する方法を示します。 True を指定すると、アクティブな終了だけを移動して選択範囲が拡張されます。 False を指定すると、選択範囲が挿入ポイントに折りたたまれてから、挿入ポイントが移動します。 既定値は false です。

戻り値

Int32

int

挿入ポイントまたはアクティブな終了位置が移動した単位の数。 選択範囲を折りたたむには、1 つの単位としてカウントされます。

注釈

0 以外の 拡張 値は、 ユニットで説明されているキーの組み合わせに加えて、押される Shift キーに対応します。

適用対象

こちらもご覧ください