GridLayout.Orientation Property

Definition

Returns the current orientation. -or- GridLayout uses the orientation property for two purposes: <ul> <li> To control the 'direction' in which default row/column indices are generated when they are not specified in a component's layout parameters.

public virtual Android.Widget.GridOrientation Orientation { [Android.Runtime.Register("getOrientation", "()I", "GetGetOrientationHandler")] get; [Android.Runtime.Register("setOrientation", "(I)V", "GetSetOrientation_IHandler")] set; }
[<get: Android.Runtime.Register("getOrientation", "()I", "GetGetOrientationHandler")>]
[<set: Android.Runtime.Register("setOrientation", "(I)V", "GetSetOrientation_IHandler")>]
member this.Orientation : Android.Widget.GridOrientation with get, set

Property Value

GridOrientation

either #HORIZONTAL or #VERTICAL

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

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