ISectionIndexer.GetPositionForSection(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given the index of a section within the array of section objects, returns the starting position of that section within the adapter.
[Android.Runtime.Register("getPositionForSection", "(I)I", "GetGetPositionForSection_IHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetPositionForSection (int sectionIndex);
[<Android.Runtime.Register("getPositionForSection", "(I)I", "GetGetPositionForSection_IHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPositionForSection : int -> int
Parameters
- sectionIndex
- Int32
the index of the section within the array of section objects
Returns
the starting position of that section within the adapter, constrained to fall within the adapter bounds
- Attributes
Remarks
Given the index of a section within the array of section objects, returns the starting position of that section within the adapter.
If the section's starting position is outside of the adapter bounds, the position must be clipped to fall within the size of the adapter.
Java documentation for android.widget.SectionIndexer.getPositionForSection(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.