ViewGroup.MarginLayoutParams.SetMargins(Int32, Int32, Int32, Int32) Method

Definition

Sets the margins, in pixels.

[Android.Runtime.Register("setMargins", "(IIII)V", "GetSetMargins_IIIIHandler")]
public virtual void SetMargins (int left, int top, int right, int bottom);
abstract member SetMargins : int * int * int * int -> unit
override this.SetMargins : int * int * int * int -> unit

Parameters

left
Int32

the left margin size

top
Int32

the top margin size

right
Int32

the right margin size

bottom
Int32

the bottom margin size

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the  and used according to terms described in the 

Applies to