GridLayout.ColumnCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
the current number of columns
- Attributes
Remarks
Property getter documentation:
Returns the current number of columns. This is either the last value that was set with #setColumnCount(int)
or, if no such value was set, the maximum value of each the upper bounds defined in LayoutParams#columnSpec
.
Java documentation for android.widget.GridLayout.getColumnCount()
.
Property setter documentation:
ColumnCount is used only to generate default column/column indices when they are not specified by a component's layout parameters.
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.