次の方法で共有


LocaleList.IndexOf(Locale) Method

Definition

Searches this LocaleList for the specified Locale and returns the index of the first occurrence.

[Android.Runtime.Register("indexOf", "(Ljava/util/Locale;)I", "", ApiSince=24)]
public int IndexOf (Java.Util.Locale? locale);
[<Android.Runtime.Register("indexOf", "(Ljava/util/Locale;)I", "", ApiSince=24)>]
member this.IndexOf : Java.Util.Locale -> int

Parameters

locale
Locale

The Locale to search for.

Returns

The index of the first occurrence of the Locale or -1 if the item wasn't found.

Attributes

Remarks

Searches this LocaleList for the specified Locale and returns the index of the first occurrence.

Java documentation for android.os.LocaleList.indexOf(java.util.Locale).

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