GridLayout.ColumnCount Property

Definition

Returns the current number of columns. -or- ColumnCount is used only to generate default column/column indices when they are not specified by a component's layout parameters.

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

Property Value

Int32

the current number of columns

Attributes

Remarks

Property getter documentation:

Java documentation for android.widget.GridLayout.getColumnCount().

Property setter documentation:

Java documentation for android.widget.GridLayout.setColumnCount(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also