Share via


GridLayout.UseDefaultMargins Property

Definition

Returns whether or not this GridLayout will allocate default margins when no corresponding layout parameters are defined. -or- When true, GridLayout allocates default margins around children based on the child's visual characteristics.

public virtual bool UseDefaultMargins { [Android.Runtime.Register("getUseDefaultMargins", "()Z", "GetGetUseDefaultMarginsHandler")] get; [Android.Runtime.Register("setUseDefaultMargins", "(Z)V", "GetSetUseDefaultMargins_ZHandler")] set; }
[<get: Android.Runtime.Register("getUseDefaultMargins", "()Z", "GetGetUseDefaultMarginsHandler")>]
[<set: Android.Runtime.Register("setUseDefaultMargins", "(Z)V", "GetSetUseDefaultMargins_ZHandler")>]
member this.UseDefaultMargins : bool with get, set

Property Value

true if default margins should be allocated

Attributes

Remarks

Property getter documentation:

Returns whether or not this GridLayout will allocate default margins when no corresponding layout parameters are defined.

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

Property setter documentation:

When true, GridLayout allocates default margins around children based on the child's visual characteristics. Each of the margins so defined may be independently overridden by an assignment to the appropriate layout parameter.

When false, the default value of all margins is zero.

When setting to true, consider setting the value of the #setAlignmentMode(int) alignmentMode property to #ALIGN_BOUNDS.

The default value of this property is false.

Java documentation for android.widget.GridLayout.setUseDefaultMargins(boolean).

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