Share via


AlphabetIndexer.GetSectionForPosition(Int32) Method

Definition

Returns the section index for a given position in the list by querying the item and comparing it with all items in the section array.

[Android.Runtime.Register("getSectionForPosition", "(I)I", "GetGetSectionForPosition_IHandler")]
public virtual int GetSectionForPosition (int position);
[<Android.Runtime.Register("getSectionForPosition", "(I)I", "GetGetSectionForPosition_IHandler")>]
abstract member GetSectionForPosition : int -> int
override this.GetSectionForPosition : int -> int

Parameters

position
Int32

the position within the adapter for which to return the corresponding section index

Returns

Implements

Attributes

Remarks

Returns the section index for a given position in the list by querying the item and comparing it with all items in the section array.

Java documentation for android.widget.AlphabetIndexer.getSectionForPosition(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