Share via


ViewGroup.MarginLayoutParams.TopMargin Property

Definition

The top margin in pixels of the child.

[Android.Runtime.Register("topMargin")]
public int TopMargin { get; set; }
[<Android.Runtime.Register("topMargin")>]
member this.TopMargin : int with get, set

Property Value

Attributes

Remarks

The top margin in pixels of the child. Margin values should be positive. Call ViewGroup#setLayoutParams(LayoutParams) after reassigning a new value to this field.

Java documentation for android.view.ViewGroup.MarginLayoutParams.topMargin.

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