RichEditTextRange.EndOf(TextRangeUnit, Boolean) メソッド

定義

指定した最も近いテキスト単位の末尾までテキスト範囲を移動または拡張します。 テキスト範囲は、文書内で移動または拡張されます。

public:
 virtual int EndOf(TextRangeUnit unit, bool extend) = EndOf;
int EndOf(TextRangeUnit const& unit, bool const& extend);
public int EndOf(TextRangeUnit unit, bool extend);
function endOf(unit, extend)
Public Function EndOf (unit As TextRangeUnit, extend As Boolean) As Integer

パラメーター

unit
TextRangeUnit

テキスト範囲の終了位置を移動する単位。

extend
Boolean

bool

true を指定 すると、範囲の終了位置だけを指定した単位の末尾に移動して、テキスト範囲を拡張できます。 false を指定 した単位の末尾にテキスト範囲の両端を移動します。 既定値は false です。

戻り値

Int32

int

範囲が移動または拡張された文字位置の数。テキスト範囲が範囲の先頭まで折りたたまれている場合は 1 を加算します。 テキスト範囲にストーリーの末尾に最終的な復帰 (CR) が含まれており、extend が false の場合、範囲の末尾の前に折りたたみが発生したことを示す戻り値は –1 に設定されます。 これは、挿入ポイントが最終的な CR を超えて存在できないためです。

実装

M:Windows.UI.Text.ITextRange.EndOf(Windows.UI.Text.TextRangeUnit,System.Boolean) M:Windows.UI.Text.ITextRange.EndOf(Windows.UI.Text.TextRangeUnit,bool)

適用対象