語言

GridLayout.ColumnCount 屬性

定義

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

public virtual int ColumnCount { [Android.Runtime.Register("getColumnCount", "()I", "GetGetColumnCountHandler")] get; [Android.Runtime.Register("setColumnCount", "(I)V", "GetSetColumnCount_IHandler")] set; }
[<get: Android.Runtime.Register("getColumnCount", "()I", "GetGetColumnCountHandler")>]
[<set: Android.Runtime.Register("setColumnCount", "(I)V", "GetSetColumnCount_IHandler")>]
member this.ColumnCount : int with get, set

屬性值

目前的欄位數量

屬性

備註

財產取得者文件:

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

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

屬性設定文件:

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

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

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

適用於

另請參閱