語言

ISectionIndexer.GetSections 方法

定義

回傳一個代表清單區段的物件陣列。

[Android.Runtime.Register("getSections", "()[Ljava/lang/Object;", "GetGetSectionsHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object[]? GetSections();
[<Android.Runtime.Register("getSections", "()[Ljava/lang/Object;", "GetGetSectionsHandler:Android.Widget.ISectionIndexerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetSections : unit -> Java.Lang.Object[]

傳回

Object[]

區段物件陣列

屬性

備註

回傳一個代表清單區段的物件陣列。 回傳的陣列及其內容應該是非空的。

清單檢視會在物件上呼叫 toString(),讓預覽文字在捲動時顯示。 例如,適配器可能會回傳一組代表字母的字串陣列。 或者,它可能會回傳一個由 toString() 方法回傳其區段標題的物件陣列。

Java 文件 android.widget.SectionIndexer.getSections()。

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

適用於