語言

AlphabetIndexer.GetSectionForPosition(Int32) 方法

定義

透過查詢該項目並與區段陣列中的所有項目比較,回傳該列表中特定位置的區段索引。

[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

參數

position
Int32

在適配器中回傳對應區段索引的位置

傳回

該區段在區段物件陣列中對應區段的索引,且受限於陣列範圍內

實作

屬性

備註

透過查詢該項目並與區段陣列中的所有項目比較,回傳該列表中特定位置的區段索引。

Java 文件 android.widget.AlphabetIndexer.getSectionForPosition(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於