共用方式為


ExpandableListView.SetSelectedChild(Int32, Int32, Boolean) 方法

定義

將選取範圍設定為指定的子系。

[Android.Runtime.Register("setSelectedChild", "(IIZ)Z", "GetSetSelectedChild_IIZHandler")]
public virtual bool SetSelectedChild (int groupPosition, int childPosition, bool shouldExpandGroup);
[<Android.Runtime.Register("setSelectedChild", "(IIZ)Z", "GetSetSelectedChild_IIZHandler")>]
abstract member SetSelectedChild : int * int * bool -> bool
override this.SetSelectedChild : int * int * bool -> bool

參數

groupPosition
Int32

包含子系之群組的位置。

childPosition
Int32

子系在群組中的位置。

shouldExpandGroup
Boolean

如果子群組已折疊,是否應該展開。

傳回

是否成功在子系上設定選取專案。

屬性

備註

將選取範圍設定為指定的子系。 如果子系位於折疊的群組中,則只有在 shouldExpandGroup 設定為 true 時,才會展開群組,且後續選取的子系,否則方法會傳回 false。

android.widget.ExpandableListView.setSelectedChild(int, int, boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於