ViewGroup.MarginLayoutParams Constructors

Definition

Overloads

Name Description
ViewGroup.MarginLayoutParams(ViewGroup+LayoutParams)

Initializes a new instance of ViewGroup.MarginLayoutParams.

ViewGroup.MarginLayoutParams(ViewGroup+MarginLayoutParams)

Copy constructor.

ViewGroup.MarginLayoutParams(Context, IAttributeSet)

Creates a new set of layout parameters.

ViewGroup.MarginLayoutParams(Int32, Int32)

Initializes a new instance of ViewGroup.MarginLayoutParams.

ViewGroup.MarginLayoutParams(IntPtr, JniHandleOwnership)

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

ViewGroup.MarginLayoutParams(ViewGroup+LayoutParams)

Initializes a new instance of ViewGroup.MarginLayoutParams.

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$LayoutParams;)V", "")]
public MarginLayoutParams(Android.Views.ViewGroup.LayoutParams? source);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$LayoutParams;)V", "")>]
new Android.Views.ViewGroup.MarginLayoutParams : Android.Views.ViewGroup.LayoutParams -> Android.Views.ViewGroup.MarginLayoutParams

Parameters

source
ViewGroup.LayoutParams

The Android.Views.ViewGroup+LayoutParams value used for source.

Attributes

Remarks

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

ViewGroup.MarginLayoutParams(ViewGroup+MarginLayoutParams)

Copy constructor.

[Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$MarginLayoutParams;)V", "")]
public MarginLayoutParams(Android.Views.ViewGroup.MarginLayoutParams? source);
[<Android.Runtime.Register(".ctor", "(Landroid/view/ViewGroup$MarginLayoutParams;)V", "")>]
new Android.Views.ViewGroup.MarginLayoutParams : Android.Views.ViewGroup.MarginLayoutParams -> Android.Views.ViewGroup.MarginLayoutParams

Parameters

source
ViewGroup.MarginLayoutParams

The Android.Views.ViewGroup+MarginLayoutParams value used for source.

Attributes

Remarks

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

ViewGroup.MarginLayoutParams(Context, IAttributeSet)

Creates a new set of layout parameters.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public MarginLayoutParams(Android.Content.Context? c, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.ViewGroup.MarginLayoutParams : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.ViewGroup.MarginLayoutParams

Parameters

c
Context

the application environment

attrs
IAttributeSet

the set of attributes from which to extract the layout parameters' values

Attributes

Remarks

Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context.

Java documentation for android.view.ViewGroup.MarginLayoutParams.MarginLayoutParams(android.content.Context, android.util.AttributeSet).

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

ViewGroup.MarginLayoutParams(Int32, Int32)

Initializes a new instance of ViewGroup.MarginLayoutParams.

[Android.Runtime.Register(".ctor", "(II)V", "")]
public MarginLayoutParams(int width, int height);
[<Android.Runtime.Register(".ctor", "(II)V", "")>]
new Android.Views.ViewGroup.MarginLayoutParams : int * int -> Android.Views.ViewGroup.MarginLayoutParams

Parameters

width
Int32

The System.Int32 value used for width.

height
Int32

The System.Int32 value used for height.

Attributes

Remarks

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

ViewGroup.MarginLayoutParams(IntPtr, JniHandleOwnership)

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

protected MarginLayoutParams(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.ViewGroup.MarginLayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.ViewGroup.MarginLayoutParams

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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