Megosztás a következőn keresztül:


IAdapter.GetItem(Int32) Method

Definition

Get the data item associated with the specified position in the data set.

[Android.Runtime.Register("getItem", "(I)Ljava/lang/Object;", "GetGetItem_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? GetItem (int position);
[<Android.Runtime.Register("getItem", "(I)Ljava/lang/Object;", "GetGetItem_IHandler:Android.Widget.IAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetItem : int -> Java.Lang.Object

Parameters

position
Int32

Position of the item whose data we want within the adapter's data set.

Returns

The data at the specified position.

Attributes

Remarks

Get the data item associated with the specified position in the data set.

Java documentation for android.widget.Adapter.getItem(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.

Applies to