Language

InputConnectionWrapper.DeleteSurroundingText(Int32, Int32) メソッド

定義

現在のカーソル位置の前にあるテキストの beforeLength 文字を削除し、現在のカーソル位置の後のテキストの afterLength 文字を削除します (選択範囲は除く)。

[Android.Runtime.Register("deleteSurroundingText", "(II)Z", "GetDeleteSurroundingText_IIHandler")]
public virtual bool DeleteSurroundingText(int beforeLength, int afterLength);
[<Android.Runtime.Register("deleteSurroundingText", "(II)Z", "GetDeleteSurroundingText_IIHandler")>]
abstract member DeleteSurroundingText : int * int -> bool
override this.DeleteSurroundingText : int * int -> bool

パラメーター

beforeLength
Int32

現在のカーソル位置の前に削除する文字数。

afterLength
Int32

現在のカーソル位置の後に削除する文字数。

戻り値

ターゲット接続によって返される値。

実装

属性

注釈

現在のカーソル位置の前にあるテキストの beforeLength 文字を削除し、現在のカーソル位置の後のテキストの afterLength 文字を削除します (選択範囲は除く)。 前と後は、視覚的表現ではなく、文字列内の文字の順序を参照します。これは、テキストの方向を把握する必要がなく、as-isインデックスを使用できることを意味します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象