AlphabetIndexer.GetSectionForPosition(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過查詢該項目並與區段陣列中的所有項目比較,回傳該列表中特定位置的區段索引。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。