Partager via


ULocale.IsRightToLeft Property

Definition

<strong>[icu]</strong> Returns whether this locale's script is written right-to-left.

public bool IsRightToLeft { [Android.Runtime.Register("isRightToLeft", "()Z", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isRightToLeft", "()Z", "", ApiSince=24)>]
member this.IsRightToLeft : bool

Property Value

true if the locale's script is written right-to-left

Attributes

Remarks

<strong>[icu]</strong> Returns whether this locale's script is written right-to-left. If there is no script subtag, then the likely script is used, see #addLikelySubtags(ULocale). If no likely script is known, then false is returned.

A script is right-to-left according to the CLDR script metadata which corresponds to whether the script's letters have Bidi_Class=R or AL.

Returns true for "ar" and "en-Hebr", false for "zh" and "fa-Cyrl".

Java documentation for android.icu.util.ULocale.isRightToLeft().

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