TextBoundsInfo.GetCharacterBidiLevel(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.
The BiDi level of the character at the given index
.
[Android.Runtime.Register("getCharacterBidiLevel", "(I)I", "", ApiSince=34)]
public int GetCharacterBidiLevel (int index);
[<Android.Runtime.Register("getCharacterBidiLevel", "(I)I", "", ApiSince=34)>]
member this.GetCharacterBidiLevel : int -> int
Parameters
- index
- Int32
the index of the queried character.
Returns
the BiDi level of the character, which is an integer in the range of [0, 125].
- Attributes
Remarks
The BiDi level of the character at the given index
. <br/> BiDi level is defined by the unicode bidirectional algorithm . One can determine whether a character's direction is right-to-left (RTL) or left-to-right (LTR) by checking the last bit of the BiDi level. If it's 1, the character is RTL, otherwise the character is LTR. The BiDi level of a character must be in the range of [0, 125].
Java documentation for android.view.inputmethod.TextBoundsInfo.getCharacterBidiLevel(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.