Share via


GridLayout.RowCount Property

Definition

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

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

Property Value

the current number of rows

Attributes

Remarks

Property getter documentation:

Returns the current number of rows. This is either the last value that was set with #setRowCount(int) or, if no such value was set, the maximum value of each the upper bounds defined in LayoutParams#rowSpec.

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

Property setter documentation:

RowCount is used only to generate default row/column indices when they are not specified by a component's layout parameters.

Java documentation for android.widget.GridLayout.setRowCount(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