RichEditTextRange.Move(TextRangeUnit, Int32) メソッド

定義

挿入ポイントを、指定した_unit_s数だけ前後に移動します。 テキスト範囲が生成されていない場合は、 カウントに応じてテキスト範囲の開始位置または終了位置の挿入ポイントに折りたたまれてから、移動されます。

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

パラメーター

unit
TextRangeUnit

挿入ポイントを移動する単位。 既定値は Character です

count
Int32

int

挿入ポイントを移動する_unit_sの数。 既定値は 1 です。 count が 0 より大きい場合、挿入ポイントはストーリーの末尾に向かって前方に移動します。 count が 0 未満の場合、挿入ポイントはストーリーの先頭に向かって後方に移動します。 count が 0 の場合、範囲は変更されません。

戻り値

Int32

int

挿入ポイントが移動する実際の単位数。

実装

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

適用対象