다음을 통해 공유


ViewGroup.MarginLayoutParams Constructors

Definition

Overloads

ViewGroup.MarginLayoutParams(ViewGroup+LayoutParams)
ViewGroup.MarginLayoutParams(ViewGroup+MarginLayoutParams)

Copy constructor.

ViewGroup.MarginLayoutParams(Context, IAttributeSet)

Creates a new set of layout parameters.

ViewGroup.MarginLayoutParams(Int32, Int32)
ViewGroup.MarginLayoutParams(IntPtr, JniHandleOwnership)

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

ViewGroup.MarginLayoutParams(ViewGroup+LayoutParams)

[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

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

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.ViewGroup$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)

[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
height
Int32
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