Język

BreakIterator.Text Property

Definition

Returns a CharacterIterator over the text being analyzed.

public abstract Java.Text.ICharacterIterator? Text { [Android.Runtime.Register("getText", "()Ljava/text/CharacterIterator;", "GetGetTextHandler", ApiSince=24)] get; [Android.Runtime.Register("setText", "(Ljava/text/CharacterIterator;)V", "GetSetText_Ljava_text_CharacterIterator_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getText", "()Ljava/text/CharacterIterator;", "GetGetTextHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setText", "(Ljava/text/CharacterIterator;)V", "GetSetText_Ljava_text_CharacterIterator_Handler", ApiSince=24)>]
member this.Text : Java.Text.ICharacterIterator with get, set

Property Value

A CharacterIterator over the text being analyzed.

Attributes

Remarks

Returns a CharacterIterator over the text being analyzed. Caution: The state of the returned CharacterIterator must not be modified in any way while the BreakIterator is still in use. Doing so will lead to undefined behavior of the BreakIterator. Clone the returned CharacterIterator first and work with that. The returned CharacterIterator is a reference to the actual iterator being used by the BreakIterator. No guarantees are made about the current position of this iterator when it is returned; it may differ from the BreakIterators current position. If you need to move that position to examine the text, clone this function's return value first.

Android reference for android.icu.text.BreakIterator.getText.

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