次の方法で共有


ICharacterIterator.SetIndex(Int32) Method

Definition

Sets the position to the specified position in the text and returns that character.

[Android.Runtime.Register("setIndex", "(I)C", "GetSetIndex_IHandler:Java.Text.ICharacterIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public char SetIndex (int position);
[<Android.Runtime.Register("setIndex", "(I)C", "GetSetIndex_IHandler:Java.Text.ICharacterIteratorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetIndex : int -> char

Parameters

position
Int32

the position within the text. Valid values range from getBeginIndex() to getEndIndex(). An IllegalArgumentException is thrown if an invalid value is supplied.

Returns

the character at the specified position or DONE if the specified position is equal to getEndIndex()

Attributes

Exceptions

if location is less than the begin index or greater than the end index.

Remarks

Sets the position to the specified position in the text and returns that character.

Java documentation for java.text.CharacterIterator.setIndex(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to