ISectionIndexer.GetPositionForSection(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
給定區段物件陣列中的區段索引,會回傳該區段在適配器中的起始位置。
[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
參數
- sectionIndex
- Int32
該區段在區段物件陣列中的索引
傳回
該區段在適配器內的起始位置,受限於適配器範圍內
- 屬性
備註
給定區段物件陣列中的區段索引,會回傳該區段在適配器中的起始位置。
若該區段的起始位置超出適配器範圍,則必須裁剪該位置以符合適配器的尺寸。
Java 文件 android.widget.SectionIndexer.getPositionForSection(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。