Bidi.GetBaseDirection 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.
Overloads
GetBaseDirection(ICharSequence) |
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm. |
GetBaseDirection(String) |
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm. |
GetBaseDirection(ICharSequence)
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm.
[Android.Runtime.Register("getBaseDirection", "(Ljava/lang/CharSequence;)B", "", ApiSince=29)]
public static sbyte GetBaseDirection (Java.Lang.ICharSequence? paragraph);
[<Android.Runtime.Register("getBaseDirection", "(Ljava/lang/CharSequence;)B", "", ApiSince=29)>]
static member GetBaseDirection : Java.Lang.ICharSequence -> sbyte
Parameters
- paragraph
- ICharSequence
the text whose paragraph level direction is needed.
Returns
LTR, RTL, NEUTRAL
- Attributes
Remarks
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm. The base direction is derived from the first character in the string with bidirectional character type L, R, or AL. If the first such character has type L, LTR is returned. If the first such character has type R or AL, RTL is returned. If the string does not contain any character of these types, then NEUTRAL is returned. This is a lightweight function for use when only the base direction is needed and no further bidi processing of the text is needed.
Java documentation for android.icu.text.Bidi.getBaseDirection(java.lang.CharSequence)
.
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
GetBaseDirection(String)
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm.
public static sbyte GetBaseDirection (string? paragraph);
static member GetBaseDirection : string -> sbyte
Parameters
- paragraph
- String
the text whose paragraph level direction is needed.
Returns
LTR, RTL, NEUTRAL
Remarks
Get the base direction of the text provided according to the Unicode Bidirectional Algorithm. The base direction is derived from the first character in the string with bidirectional character type L, R, or AL. If the first such character has type L, LTR is returned. If the first such character has type R or AL, RTL is returned. If the string does not contain any character of these types, then NEUTRAL is returned. This is a lightweight function for use when only the base direction is needed and no further bidi processing of the text is needed.
Java documentation for android.icu.text.Bidi.getBaseDirection(java.lang.CharSequence)
.
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.