Android Guides | Samples

Android.Views.ViewGroup.MarginLayoutParams Class

Per-child layout information for layouts that support margins.

See Also: ViewGroup+MarginLayoutParams

Syntax

[Android.Runtime.Register("android/view/ViewGroup$MarginLayoutParams", DoNotGenerateAcw=true)]
public class ViewGroup.MarginLayoutParams : ViewGroup+LayoutParams

Remarks

Per-child layout information for layouts that support margins. See NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#ViewGroup_MarginLayout for a list of all child view attributes that this class supports.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Views.ViewGroup.MarginLayoutParams are listed below.

See Also: ViewGroup+LayoutParams

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

BottomMarginInt32. The bottom margin in pixels of the child.
[read-only]
IsMarginRelativeBoolean. Check if margins are relative.
LayoutDirectionLayoutDirection. Retuns the layout direction.
LeftMarginInt32. The left margin in pixels of the child.
MarginEndInt32. Returns the end margin in pixels.
MarginStartInt32. Returns the start margin in pixels.
RightMarginInt32. The right margin in pixels of the child.
TopMarginInt32. The top margin in pixels of the child.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

SetMargins(Int32, Int32, Int32, Int32)
Sets the margins, in pixels.