ISectionIndexer.GetPositionForSection(Int32) メソッド

定義

セクション オブジェクトの配列内のセクションのインデックスを指定すると、アダプター内でそのセクションの開始位置を返します。

[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

section オブジェクトの配列内のセクションのインデックス

戻り値

アダプター内のそのセクションの開始位置。アダプターの境界内に収まるように制限されます

属性

注釈

セクション オブジェクトの配列内のセクションのインデックスを指定すると、アダプター内でそのセクションの開始位置を返します。

セクションの開始位置がアダプターの境界外にある場合は、アダプターのサイズ内に収まるように位置をクリップする必要があります。

android.widget.SectionIndexer.getPositionForSection(int)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象