Share via


ArrayAdapter.GetPosition(Object) Method

Definition

Returns the position of the specified item in the array.

[Android.Runtime.Register("getPosition", "(Ljava/lang/Object;)I", "GetGetPosition_Ljava_lang_Object_Handler")]
public virtual int GetPosition (Java.Lang.Object? item);
[<Android.Runtime.Register("getPosition", "(Ljava/lang/Object;)I", "GetGetPosition_Ljava_lang_Object_Handler")>]
abstract member GetPosition : Java.Lang.Object -> int
override this.GetPosition : Java.Lang.Object -> int

Parameters

item
Object

The item to retrieve the position of.

Returns

The position of the specified item.

Attributes

Remarks

Returns the position of the specified item in the array.

Java documentation for android.widget.ArrayAdapter.getPosition(T).

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