語言

GridLayout.RowCount 屬性

定義

回傳目前的列數。 -或- RowCount 僅用於產生元件配置參數未指定預設的列/欄索引。

public virtual int RowCount { [Android.Runtime.Register("getRowCount", "()I", "GetGetRowCountHandler")] get; [Android.Runtime.Register("setRowCount", "(I)V", "GetSetRowCount_IHandler")] set; }
[<get: Android.Runtime.Register("getRowCount", "()I", "GetGetRowCountHandler")>]
[<set: Android.Runtime.Register("setRowCount", "(I)V", "GetSetRowCount_IHandler")>]
member this.RowCount : int with get, set

屬性值

目前的列數

屬性

備註

財產取得者文件:

回傳目前的列數。 這要麼是最後一個被設定的 #setRowCount(int) 值,要麼如果沒有設定,則是定義在 LayoutParams#rowSpec中的每個上界的最大值。

Java 文件 android.widget.GridLayout.getRowCount()。

屬性設定文件:

RowCount 僅用於產生元件配置參數未指定預設的列/欄索引。

Java 文件 android.widget.GridLayout.setRowCount(int)。

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

適用於

另請參閱