Dela via


View.LayoutParameters Property

Definition

Get the LayoutParams associated with this view. -or- Set the layout parameters associated with this view.

public virtual Android.Views.ViewGroup.LayoutParams? LayoutParameters { [Android.Runtime.Register("getLayoutParams", "()Landroid/view/ViewGroup$LayoutParams;", "GetGetLayoutParametersHandler")] get; [Android.Runtime.Register("setLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)V", "GetSetLayoutParameters_Landroid_view_ViewGroup_LayoutParams_Handler")] set; }
[<get: Android.Runtime.Register("getLayoutParams", "()Landroid/view/ViewGroup$LayoutParams;", "GetGetLayoutParametersHandler")>]
[<set: Android.Runtime.Register("setLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)V", "GetSetLayoutParameters_Landroid_view_ViewGroup_LayoutParams_Handler")>]
member this.LayoutParameters : Android.Views.ViewGroup.LayoutParams with get, set

Property Value

The LayoutParams associated with this view, or null if no parameters have been set yet

Attributes

Remarks

Property getter documentation:

Java documentation for android.view.View.getLayoutParams().

Property setter documentation:

Java documentation for android.view.View.setLayoutParams(android.view.LayoutParams).

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