Android.Widget.ISectionIndexer.GetSectionForPosition Method
Given a position within the adapter, returns the index of the corresponding section within the array of section objects.

Syntax

[Android.Runtime.Register("getSectionForPosition", "(I)I", "GetGetSectionForPosition_IHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetSectionForPosition (int position)

Parameters

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

Returns

Documentation for this section has not yet been entered.

Remarks

Given a position within the adapter, returns the index of the corresponding section within the array of section objects.

If the section index is outside of the section array bounds, the index must be clipped to fall within the size of the section array.

For example, consider an indexer where the section at array index 0 starts at adapter position 100. Calling this method with position 10, which is before the first section, must return index 0.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3