TextBoundsInfo.Builder.SetCharacterFlags(Int32[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the flags of the characters.
[Android.Runtime.Register("setCharacterFlags", "([I)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)]
public Android.Views.InputMethods.TextBoundsInfo.Builder SetCharacterFlags(int[] characterFlags);
[<Android.Runtime.Register("setCharacterFlags", "([I)Landroid/view/inputmethod/TextBoundsInfo$Builder;", "", ApiSince=34)>]
member this.SetCharacterFlags : int[] -> Android.Views.InputMethods.TextBoundsInfo.Builder
Parameters
- characterFlags
- Int32[]
the array of the character's flags. This value cannot be null.
Returns
- Attributes
Remarks
Set the flags of the characters. The flags of the i-th character in the editor is stored at index (i - start). The length of the given array must equal to (end - start). The flags contain the following information: The TextBoundsInfo.FLAG_CHARACTER_WHITESPACE flag, indicating the character is a whitespace; The TextBoundsInfo.FLAG_CHARACTER_LINEFEED flag, indicating the character is a linefeed; The TextBoundsInfo.FLAG_CHARACTER_PUNCTUATION flag, indicating the character is a punctuation; The TextBoundsInfo.FLAG_LINE_IS_RTL flag, indicating the line this character belongs to is RTL. All characters in the same line must have the same line direction. Check TextBoundsInfo.getLineSegmentFinder() for more information of line boundaries.
Android reference for android.view.inputmethod.TextBoundsInfo.Builder.setCharacterFlags.
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.