次の方法で共有


TextBoundsInfo.GetCharacterFlags(Int32) Method

Definition

Return the flags associated with the character at the given index.

[Android.Runtime.Register("getCharacterFlags", "(I)I", "", ApiSince=34)]
public Android.Views.InputMethods.TextBoundsInfoFlags GetCharacterFlags (int index);
[<Android.Runtime.Register("getCharacterFlags", "(I)I", "", ApiSince=34)>]
member this.GetCharacterFlags : int -> Android.Views.InputMethods.TextBoundsInfoFlags

Parameters

index
Int32

the index of the queried character.

Returns

the flags associated with the queried character.

Attributes

Remarks

Return the flags associated with the character at the given index. The flags contain the following information: <ul> <li>The #FLAG_CHARACTER_WHITESPACE flag, indicating the character is a whitespace. </li> <li>The #FLAG_CHARACTER_LINEFEED flag, indicating the character is a linefeed. </li> <li>The #FLAG_CHARACTER_PUNCTUATION flag, indicating the character is a punctuation. </li> <li>The #FLAG_LINE_IS_RTL flag, indicating the line this character belongs to has RTL line direction. All characters in the same line must have the same line direction. Check #getLineSegmentFinder() for more information of line boundaries. </li> </ul>

Java documentation for android.view.inputmethod.TextBoundsInfo.getCharacterFlags(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